/*
 Navicat Premium Data Transfer

 Source Server         : SQLSERVER
 Source Server Type    : SQL Server
 Source Server Version : 16001000
 Source Host           : 146.56.231.175:1433
 Source Catalog        : sqlserver_jflow_saas
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15000000
 File Encoding         : 65001

 Date: 21/08/2024 17:18:06
*/


-- ----------------------------
-- Table structure for Demo_BanJi
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_BanJi]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_BanJi]
GO

CREATE TABLE [dbo].[Demo_BanJi] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [BZR] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Demo_BanJi] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_BanJi
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Demo_KeMu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_KeMu]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_KeMu]
GO

CREATE TABLE [dbo].[Demo_KeMu] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Demo_KeMu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_KeMu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Demo_QingJia
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_QingJia]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_QingJia]
GO

CREATE TABLE [dbo].[Demo_QingJia] (
  [OID] int  NOT NULL,
  [QingJiaRenNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QingJiaRenName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QingJiaRenDeptNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QingJiaRenDeptName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QingJiaYuanYin] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QingJiaTianShu] float(53)  NULL,
  [NoteBM] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoteZJL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoteRL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Demo_QingJia] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_QingJia
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Demo_Resume
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_Resume]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_Resume]
GO

CREATE TABLE [dbo].[Demo_Resume] (
  [OID] int  NOT NULL,
  [RefPK] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [GongZuoDanWei] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ZhengMingRen] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [BeiZhu] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Demo_Resume] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_Resume
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Demo_Student
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_Student]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_Student]
GO

CREATE TABLE [dbo].[Demo_Student] (
  [No] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [PWD] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Addr] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Age] int  NULL,
  [Tel] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Email] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RegDate] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsDuShengZi] int  NULL,
  [IsJiBing] int  NULL,
  [IsPianYuanShanQu] int  NULL,
  [IsTeKunSheng] int  NULL,
  [ZZMM] int  NULL,
  [XB] int  NULL,
  [FK_BanJi] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Note] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL
)
GO

ALTER TABLE [dbo].[Demo_Student] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_Student
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Demo_StudentKeMu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Demo_StudentKeMu]') AND type IN ('U'))
	DROP TABLE [dbo].[Demo_StudentKeMu]
GO

CREATE TABLE [dbo].[Demo_StudentKeMu] (
  [FK_Student] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_KeMu] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Demo_StudentKeMu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Demo_StudentKeMu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_BBS
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_BBS]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_BBS]
GO

CREATE TABLE [dbo].[Frm_BBS] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL
)
GO

ALTER TABLE [dbo].[Frm_BBS] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_BBS
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_Collection
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_Collection]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_Collection]
GO

CREATE TABLE [dbo].[Frm_Collection] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MethodID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MethodModel] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Mark] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [Idx] int  NULL,
  [RefMethodType] int  NULL,
  [PopHeight] int  NULL,
  [PopWidth] int  NULL,
  [WarningMsg] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgSuccess] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgErr] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [WhatAreYouTodo] int  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupID] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MethodDocTypeOfFunc] int DEFAULT '0' NULL,
  [ShowModel] int DEFAULT '0' NULL
)
GO

ALTER TABLE [dbo].[Frm_Collection] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_Collection
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_DBRole
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_DBRole]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_DBRole]
GO

CREATE TABLE [dbo].[Frm_DBRole] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBRole] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MarkID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [MarkName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Frm_DBRole] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_DBRole
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_DeptCreate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_DeptCreate]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_DeptCreate]
GO

CREATE TABLE [dbo].[Frm_DeptCreate] (
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Frm_DeptCreate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_DeptCreate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_DictFlow
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_DictFlow]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_DictFlow]
GO

CREATE TABLE [dbo].[Frm_DictFlow] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [Label] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsShowListRight] int  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Frm_DictFlow] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_DictFlow
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_EmpCreate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_EmpCreate]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_EmpCreate]
GO

CREATE TABLE [dbo].[Frm_EmpCreate] (
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Frm_EmpCreate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_EmpCreate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_Func
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_Func]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_Func]
GO

CREATE TABLE [dbo].[Frm_Func] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FuncID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FuncSrc] int  NULL,
  [DTSName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [WarningMsg] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MethodDocTypeOfFunc] int  NULL,
  [MethodDoc_Url] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgSuccess] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgErr] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsHavePara] int  NULL
)
GO

ALTER TABLE [dbo].[Frm_Func] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_Func
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_GenerBill
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_GenerBill]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_GenerBill]
GO

CREATE TABLE [dbo].[Frm_GenerBill] (
  [WorkID] int  NOT NULL,
  [FK_FrmTree] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [BillNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [BillSta] int  NULL,
  [BillState] int  NULL,
  [Starter] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StarterName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Sender] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NDStep] int  NULL,
  [NDStepName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PRI] int  NULL,
  [SDTOfNode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDTOfFlow] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PFrmID] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NULL,
  [PWorkID] int  NULL,
  [TSpan] int  NULL,
  [AtPara] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Emps] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [GUID] nvarchar(36) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_NY] nvarchar(7) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Frm_GenerBill] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_GenerBill
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_GroupMethod
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_GroupMethod]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_GroupMethod]
GO

CREATE TABLE [dbo].[Frm_GroupMethod] (
  [No] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [AtPara] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Frm_GroupMethod] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_GroupMethod
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_Method
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_Method]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_Method]
GO

CREATE TABLE [dbo].[Frm_Method] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MethodID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [MethodModel] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Mark] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefMethodType] int  NULL,
  [IsMyBillToolBar] int  NULL,
  [IsMyBillToolExt] int  NULL,
  [IsSearchBar] int  NULL,
  [PopHeight] int  NULL,
  [PopWidth] int  NULL,
  [WarningMsg] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgSuccess] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgErr] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [WhatAreYouTodo] int  NULL,
  [MethodDocTypeOfFunc] int  NULL,
  [DTSDataWay] int  NULL,
  [DTSSpecFiels] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTSWhenFlowOver] int  NULL,
  [DTSWhenNodeOver] int  NULL,
  [IsEnable] int  NULL,
  [IsList] int  NULL,
  [IsHavePara] int  NULL,
  [Idx] int  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShowModel] int DEFAULT '0' NULL,
  [MethodDoc_Url] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Frm_Method] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_Method
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_StationCreate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_StationCreate]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_StationCreate]
GO

CREATE TABLE [dbo].[Frm_StationCreate] (
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Frm_StationCreate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_StationCreate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_StationDept
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_StationDept]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_StationDept]
GO

CREATE TABLE [dbo].[Frm_StationDept] (
  [FK_Frm] nvarchar(190) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Frm_StationDept] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_StationDept
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_ToolbarBtn
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_ToolbarBtn]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_ToolbarBtn]
GO

CREATE TABLE [dbo].[Frm_ToolbarBtn] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [BtnID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnLab] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PopHeight] int  NULL,
  [PopWidth] int  NULL,
  [IsEnable] int  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Frm_ToolbarBtn] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_ToolbarBtn
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Frm_Track
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Frm_Track]') AND type IN ('U'))
	DROP TABLE [dbo].[Frm_Track]
GO

CREATE TABLE [dbo].[Frm_Track] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ActionType] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [ActionTypeText] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Msg] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FID] int  NULL,
  [FlowNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeID] int  NULL,
  [NodeName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkIDOfFlow] int  NULL,
  [AtPara] nvarchar(3999) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Frm_Track] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Frm_Track
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GIS_BasicInfo
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GIS_BasicInfo]') AND type IN ('U'))
	DROP TABLE [dbo].[GIS_BasicInfo]
GO

CREATE TABLE [dbo].[GIS_BasicInfo] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [TBBH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OBJECTID] int  NULL,
  [HCQS] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ISHC] int  NULL,
  [DKStaT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QuXianNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [QuXianNoT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [XiangZhenNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [XiangZhenNoT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SJLY] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ZZZL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [TXMJ] float(53)  NULL,
  [JDMJ] float(53)  NULL,
  [ZHMJ] float(53)  NULL,
  [JDMC] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDBH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDFZE] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [LXFS] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDZB] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [TDWYQRJDH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ZGQRJDH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JYQRJDH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ZZRJDH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CLJH] float(53)  NULL,
  [ShuoShuSX] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GIS_BasicInfo] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GIS_BasicInfo
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GIS_HeChaQiShu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GIS_HeChaQiShu]') AND type IN ('U'))
	DROP TABLE [dbo].[GIS_HeChaQiShu]
GO

CREATE TABLE [dbo].[GIS_HeChaQiShu] (
  [No] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GIS_HeChaQiShu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GIS_HeChaQiShu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GIS_QuXian
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GIS_QuXian]') AND type IN ('U'))
	DROP TABLE [dbo].[GIS_QuXian]
GO

CREATE TABLE [dbo].[GIS_QuXian] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GIS_QuXian] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GIS_QuXian
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GIS_XiangZhen
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GIS_XiangZhen]') AND type IN ('U'))
	DROP TABLE [dbo].[GIS_XiangZhen]
GO

CREATE TABLE [dbo].[GIS_XiangZhen] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GIS_XiangZhen] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GIS_XiangZhen
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for goview_projectdatas
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[goview_projectdatas]') AND type IN ('U'))
	DROP TABLE [dbo].[goview_projectdatas]
GO

CREATE TABLE [dbo].[goview_projectdatas] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ProjectId] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreateTime] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreateUserId] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Content] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[goview_projectdatas] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of goview_projectdatas
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for goview_projects
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[goview_projects]') AND type IN ('U'))
	DROP TABLE [dbo].[goview_projects]
GO

CREATE TABLE [dbo].[goview_projects] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ProjectName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [State] int  NULL,
  [CreateTime] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreateUserId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [isDelete] int  NULL,
  [Remarks] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [indexImage] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [isTemplate] int  NULL
)
GO

ALTER TABLE [dbo].[goview_projects] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of goview_projects
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_DeptMenu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_DeptMenu]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_DeptMenu]
GO

CREATE TABLE [dbo].[GPM_DeptMenu] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Menu] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsChecked] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_DeptMenu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_DeptMenu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_EmpMenu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_EmpMenu]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_EmpMenu]
GO

CREATE TABLE [dbo].[GPM_EmpMenu] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Menu] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_App] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsChecked] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_EmpMenu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_EmpMenu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_Group
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_Group]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_Group]
GO

CREATE TABLE [dbo].[GPM_Group] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_Group] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_Group
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_GroupDept
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_GroupDept]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_GroupDept]
GO

CREATE TABLE [dbo].[GPM_GroupDept] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Group] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GPM_GroupDept] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_GroupDept
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_GroupEmp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_GroupEmp]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_GroupEmp]
GO

CREATE TABLE [dbo].[GPM_GroupEmp] (
  [FK_Group] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[GPM_GroupEmp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_GroupEmp
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_GroupMenu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_GroupMenu]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_GroupMenu]
GO

CREATE TABLE [dbo].[GPM_GroupMenu] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Group] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Menu] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsChecked] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_GroupMenu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_GroupMenu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_GroupStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_GroupStation]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_GroupStation]
GO

CREATE TABLE [dbo].[GPM_GroupStation] (
  [FK_Group] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[GPM_GroupStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_GroupStation
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_Menu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_Menu]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_Menu]
GO

CREATE TABLE [dbo].[GPM_Menu] (
  [No] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [UrlExt] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsMyBillToolBar] int  NULL,
  [IsMyBillToolExt] int  NULL,
  [IsSearchBar] int  NULL,
  [DTSDataWay] int  NULL,
  [DTSSpecFiels] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTSWhenFlowOver] int  NULL,
  [DTSWhenNodeOver] int  NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MenuModel] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Mark] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag1] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [OpenWay] int DEFAULT '1' NULL,
  [Alias] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [path] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [UrlPath] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IframeOpenType] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'inner' NULL,
  [IframeOpenTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT 'inner' NULL,
  [MobileUrlExt] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsEnable] int DEFAULT '1' NULL,
  [SystemNo] nvarchar(150) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ModuleNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ModuleNoText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ListModel] int DEFAULT '0' NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Idx] int DEFAULT '0' NULL,
  [AtPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Title] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag4] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TagInt1] int DEFAULT '0' NULL,
  [Tag0] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag2] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag3] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ModuleNoT] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnName] varchar(300) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GPM_Menu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_Menu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_MenuDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_MenuDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_MenuDtl]
GO

CREATE TABLE [dbo].[GPM_MenuDtl] (
  [No] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefMenuNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [UrlExt] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Model] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[GPM_MenuDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_MenuDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_Module
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_Module]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_Module]
GO

CREATE TABLE [dbo].[GPM_Module] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [SystemNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [IsEnable] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChildDisplayModel] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_Module] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_Module
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_PowerCenter
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_PowerCenter]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_PowerCenter]
GO

CREATE TABLE [dbo].[GPM_PowerCenter] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CtrlObj] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlPKVal] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlGroup] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlModel] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IDs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [IDNames] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GPM_PowerCenter] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_PowerCenter
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_StationMenu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_StationMenu]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_StationMenu]
GO

CREATE TABLE [dbo].[GPM_StationMenu] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Menu] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Station] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsChecked] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_StationMenu] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_StationMenu
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_System
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_System]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_System]
GO

CREATE TABLE [dbo].[GPM_System] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[GPM_System] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_System
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_Window
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_Window]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_Window]
GO

CREATE TABLE [dbo].[GPM_Window] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EmpNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [WindowTemplateNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[GPM_Window] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_Window
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_WindowTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_WindowTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_WindowTemplate]
GO

CREATE TABLE [dbo].[GPM_WindowTemplate] (
  [No] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColSpan] int  NULL,
  [WinDocModel] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PageID] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MoreLab] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MoreUrl] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MoreLinkModel] int  NULL,
  [PopW] int  NULL,
  [PopH] int  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [IsDel] int  NULL,
  [IsEnable] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [LabOfFZ] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQLOfFZ] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [LabOfFM] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQLOfFM] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [LabOfRate] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsPie] int  NULL,
  [IsLine] int  NULL,
  [IsZZT] int  NULL,
  [IsRing] int  NULL,
  [IsRate] int  NULL,
  [DefaultChart] int  NULL,
  [DBType] int DEFAULT '0' NULL,
  [DBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [C0Ens] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [C1Ens] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [C2Ens] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [C3Ens] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AtPara] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[GPM_WindowTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_WindowTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for GPM_WindowTemplateDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[GPM_WindowTemplateDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[GPM_WindowTemplateDtl]
GO

CREATE TABLE [dbo].[GPM_WindowTemplateDtl] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FontColor] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exp0] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exp1] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [WindowsShowType] int  NULL,
  [RefPK] nvarchar(40) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DBType] int DEFAULT '0' NULL,
  [UrlExt] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[GPM_WindowTemplateDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of GPM_WindowTemplateDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for ND1Rpt
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ND1Rpt]') AND type IN ('U'))
	DROP TABLE [dbo].[ND1Rpt]
GO

CREATE TABLE [dbo].[ND1Rpt] (
  [Emps] nvarchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [FID] int  NULL,
  [AtPara] nvarchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_DeptName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_NY] nvarchar(7) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQDept] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQR] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [OID] int  NOT NULL,
  [WFState] int  NULL,
  [SQRQ] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [WFSta] int  NULL,
  [FlowEmps] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowStarter] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowStartRDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PFlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEnder] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEnderRDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEndNode] int  NULL,
  [FlowDaySpan] float(53)  NULL,
  [PNodeID] int  NULL,
  [BillNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PWorkID] int  NULL,
  [PEmp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [GUID] nvarchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrjName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrjNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Dao] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RiQiCong] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [QingJiaLeiXing] int DEFAULT '0' NULL,
  [QingJiaYuanYin] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TianShu] int DEFAULT NULL NULL
)
GO

ALTER TABLE [dbo].[ND1Rpt] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of ND1Rpt
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[ND1Rpt] ([Emps], [FID], [AtPara], [FK_Dept], [FK_DeptName], [FK_NY], [RDT], [Rec], [SQDept], [SQR], [OID], [WFState], [SQRQ], [Title], [WFSta], [FlowEmps], [FlowStarter], [FlowStartRDT], [PFlowNo], [FlowEnder], [FlowEnderRDT], [FlowEndNode], [FlowDaySpan], [PNodeID], [BillNo], [PWorkID], [PEmp], [GUID], [PrjName], [PrjNo], [Dao], [RiQiCong], [QingJiaLeiXing], [QingJiaYuanYin], [TianShu]) VALUES (N'', N'0', N'', N'ccs', N'驰骋公司', N'2024-08', N'2024-08-21', N'ccs', N'驰骋公司', N'驰骋管理员', N'1767884027', N'0', N'2024-08-21', N'驰骋公司 - 驰骋管理员 在 2024-08-21 17:16 发起', N'2', N'@ccs,驰骋管理员@', N'ccs', N'2024-08-21 17:16', N'', N'ccs', N'2024-08-21 17:16', N'101', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'0', N'', NULL), (N'', N'0', N'', N'ccs', N'驰骋公司', N'2024-08', N'2024-08-21 17:12:57', N'ccs', N'驰骋公司', N'驰骋管理员', N'2060920859', N'3', N'2024-08-21', N'驰骋公司 - 驰骋管理员 在 2024-08-21 17:12 发起', N'1', N'@ccs,驰骋管理员@liping,李萍@yuwen,钰雯@zhanghaicheng,张海成@', N'ccs', N'2024-08-21 17:12:57', N'', N'ccs', N'2024-08-21 17:16:32', N'105', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'2024-08-28', N'2024-08-21', N'2', N'11111', N'7')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for ND1Track
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ND1Track]') AND type IN ('U'))
	DROP TABLE [dbo].[ND1Track]
GO

CREATE TABLE [dbo].[ND1Track] (
  [MyPK] int  NOT NULL,
  [ActionType] int  NULL,
  [ActionTypeText] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [FID] int  NULL,
  [WorkID] int  NULL,
  [NDFrom] int  NULL,
  [NDFromT] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [NDTo] int  NULL,
  [NDToT] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpFrom] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpFromT] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpTo] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpToT] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkTimeSpan] float(53)  NULL,
  [Msg] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeData] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exer] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[ND1Track] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of ND1Track
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[ND1Track] ([MyPK], [ActionType], [ActionTypeText], [FID], [WorkID], [NDFrom], [NDFromT], [NDTo], [NDToT], [EmpFrom], [EmpFromT], [EmpTo], [EmpToT], [RDT], [WorkTimeSpan], [Msg], [NodeData], [Tag], [Exer]) VALUES (N'1659032137', N'1', N'发送', N'0', N'2060920859', N'101', N'申请人', N'102', N'部门审批', N'ccs', N'驰骋管理员', N'zhanghaicheng', N'张海成', N'2024-08-21 17:12:57', N'0', N'', N'@DeptNo=ccs@DeptName=驰骋公司', N'null@SendNode=101@SheBei=PC', N'ccs,驰骋管理员'), (N'268569248', N'22', N'审核', N'0', N'2060920859', N'102', N'部门审批', N'102', N'部门审批', N'zhanghaicheng', N'张海成', N'yuwen,钰雯', N'yuwen,钰雯', N'2024-08-21 17:13:37', N'0', N'同意嘿嘿嘿', N'@DeptNo=1001@DeptName=市场部', N'102_2060920859_0_zhanghaicheng@FWCView=1@SheBei=PC', N'zhanghaicheng,张海成'), (N'1762295767', N'1', N'发送', N'0', N'2060920859', N'102', N'部门审批', N'103', N'总经理审批', N'zhanghaicheng', N'张海成', N'yuwen', N'钰雯', N'2024-08-21 17:13:44', N'0', N'WorkCheck@同意嘿嘿嘿', N'@DeptNo=1001@DeptName=市场部', N'null@SendNode=102@FWCView=1@SheBei=PC', N'zhanghaicheng,张海成'), (N'880815695', N'22', N'审核', N'0', N'2060920859', N'103', N'总经理审批', N'103', N'总经理审批', N'yuwen', N'钰雯', N'liping,李萍', N'liping,李萍', N'2024-08-21 17:14:17', N'0', N'同意嘿嘿嘿', N'@DeptNo=ccs@DeptName=驰骋公司', N'103_2060920859_0_yuwen@FWCView=1@SheBei=PC', N'yuwen,钰雯'), (N'628239484', N'1', N'发送', N'0', N'2060920859', N'103', N'总经理审批', N'104', N'HR审批', N'yuwen', N'钰雯', N'liping', N'李萍', N'2024-08-21 17:14:22', N'0', N'WorkCheck@同意嘿嘿嘿', N'@DeptNo=ccs@DeptName=驰骋公司', N'null@SendNode=103@FWCView=1@SheBei=PC', N'yuwen,钰雯'), (N'518703213', N'8', N'流程结束', N'0', N'2060920859', N'105', N'反馈给审批人', N'105', N'反馈给审批人', N'ccs', N'驰骋管理员', N'ccs', N'驰骋管理员', N'2024-08-21 17:16:30', N'0', N'流程已经走到最后一个节点，流程成功结束。@', N'@DeptNo=ccs@DeptName=驰骋公司', N'null@SendNode=105@SheBei=PC', N'ccs,驰骋管理员'), (N'532762142', N'22', N'审核', N'0', N'2060920859', N'104', N'HR审批', N'104', N'HR审批', N'liping', N'李萍', N'ccs,驰骋管理员', N'ccs,驰骋管理员', N'2024-08-21 17:15:44', N'0', N'同意', N'@DeptNo=1005@DeptName=人力资源部', N'104_2060920859_0_liping@FWCView=1@SheBei=PC', N'liping,李萍'), (N'616156973', N'1', N'发送', N'0', N'2060920859', N'104', N'HR审批', N'105', N'反馈给审批人', N'liping', N'李萍', N'ccs', N'驰骋管理员', N'2024-08-21 17:15:49', N'0', N'WorkCheck@同意', N'@DeptNo=1005@DeptName=人力资源部', N'null@SendNode=104@FWCView=1@SheBei=PC', N'liping,李萍')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for ND10Rpt
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ND10Rpt]') AND type IN ('U'))
	DROP TABLE [dbo].[ND10Rpt]
GO

CREATE TABLE [dbo].[ND10Rpt] (
  [OID] int  NOT NULL,
  [HCTBBH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [BatchNum] int  NULL,
  [ObjectId] int  NULL,
  [SCJDTBBH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQL_HeChaQiShu] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDBH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDMC] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [GEOMETRY] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [JDTBMJ] float(53)  NULL,
  [HCTBMJ] float(53)  NULL,
  [SQL_ShiQuXian] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQL_ShiQuXianT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQL_XiangZhen] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQL_XiangZhenT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShuoShuSX] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DKSta] int  NULL
)
GO

ALTER TABLE [dbo].[ND10Rpt] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of ND10Rpt
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_BBS
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_BBS]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_BBS]
GO

CREATE TABLE [dbo].[OA_BBS] (
  [No] nvarchar(59) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [BBSPRI] int  NULL,
  [BBSSta] int  NULL,
  [BBSType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecDeptNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RelerName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RelDeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReadTimes] int  NULL,
  [Reader] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileNum] int  NULL
)
GO

ALTER TABLE [dbo].[OA_BBS] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_BBS
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_BBSType
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_BBSType]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_BBSType]
GO

CREATE TABLE [dbo].[OA_BBSType] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_BBSType] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_BBSType
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_Info
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_Info]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_Info]
GO

CREATE TABLE [dbo].[OA_Info] (
  [No] nvarchar(59) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [InfoPRI] int  NULL,
  [InfoType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [InfoSta] int  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecDeptNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RelerName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RelDeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReadTimes] int  NULL,
  [Reader] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL
)
GO

ALTER TABLE [dbo].[OA_Info] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_Info
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_InfoType
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_InfoType]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_InfoType]
GO

CREATE TABLE [dbo].[OA_InfoType] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_InfoType] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_InfoType
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_KMDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_KMDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_KMDtl]
GO

CREATE TABLE [dbo].[OA_KMDtl] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefTreeNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [KnowledgeNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Foucs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsDel] int  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [MyFileNum] int  NULL
)
GO

ALTER TABLE [dbo].[OA_KMDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_KMDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_KMTree
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_KMTree]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_KMTree]
GO

CREATE TABLE [dbo].[OA_KMTree] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [KnowledgeNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileType] int  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsDel] int  NULL
)
GO

ALTER TABLE [dbo].[OA_KMTree] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_KMTree
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_Knowledge
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_Knowledge]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_Knowledge]
GO

CREATE TABLE [dbo].[OA_Knowledge] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImgUrl] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [KnowledgeSta] int  NULL,
  [Emps] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Foucs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_Knowledge] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_Knowledge
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_Notepad
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_Notepad]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_Notepad]
GO

CREATE TABLE [dbo].[OA_Notepad] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsStar] int  NULL
)
GO

ALTER TABLE [dbo].[OA_Notepad] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_Notepad
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_Schedule
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_Schedule]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_Schedule]
GO

CREATE TABLE [dbo].[OA_Schedule] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTStart] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTEnd] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [TimeStart] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [TimeEnd] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChiXuTime] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTAlert] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Repeats] int  NULL,
  [Local] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MiaoShu] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_Schedule] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_Schedule
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_Task
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_Task]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_Task]
GO

CREATE TABLE [dbo].[OA_Task] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Title] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsSubTask] int  NULL,
  [TaskPRI] int  NULL,
  [TaskSta] int  NULL,
  [DTFrom] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTTo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ManagerEmpNo] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [ManagerEmpName] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefEmpsNo] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefEmpsName] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefLabelNo] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefLabelName] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_Task] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_Task
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_WorkChecker
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_WorkChecker]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_WorkChecker]
GO

CREATE TABLE [dbo].[OA_WorkChecker] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPK] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Cent] int  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_WorkChecker] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_WorkChecker
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_WorkRec
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_WorkRec]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_WorkRec]
GO

CREATE TABLE [dbo].[OA_WorkRec] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [WorkRecModel] int  NULL,
  [Doc1] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc2] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc3] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [HeiJiHour] float(53)  NULL,
  [NumOfItem] int  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RiQi] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianDu] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_WorkRec] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_WorkRec
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_WorkRecDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_WorkRecDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_WorkRecDtl]
GO

CREATE TABLE [dbo].[OA_WorkRecDtl] (
  [MyPK] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPK] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrjName] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Result] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Hour] int  NULL,
  [Minute] int  NULL,
  [HeiJiHour] float(53)  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RiQi] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianYue] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [NianDu] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [WeekNum] int  NULL
)
GO

ALTER TABLE [dbo].[OA_WorkRecDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_WorkRecDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for OA_WorkShare
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[OA_WorkShare]') AND type IN ('U'))
	DROP TABLE [dbo].[OA_WorkShare]
GO

CREATE TABLE [dbo].[OA_WorkShare] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShareToEmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShareToEmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShareState] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[OA_WorkShare] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of OA_WorkShare
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Dept
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Dept]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Dept]
GO

CREATE TABLE [dbo].[Port_Dept] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameOfPath] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Leader] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [LinkMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PrjNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PrjName] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PrjShortName] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Adminer] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RefID] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RefParentID] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Port_Dept] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'部门联络员',
'SCHEMA', N'dbo',
'TABLE', N'Port_Dept',
'COLUMN', N'LinkMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目编号',
'SCHEMA', N'dbo',
'TABLE', N'Port_Dept',
'COLUMN', N'PrjNo'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目名称',
'SCHEMA', N'dbo',
'TABLE', N'Port_Dept',
'COLUMN', N'PrjName'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目简称',
'SCHEMA', N'dbo',
'TABLE', N'Port_Dept',
'COLUMN', N'PrjShortName'
GO


-- ----------------------------
-- Records of Port_Dept
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_Dept] ([No], [Name], [NameOfPath], [ParentNo], [OrgNo], [Leader], [Idx], [LinkMan], [PrjNo], [PrjName], [PrjShortName], [Adminer], [RefID], [RefParentID]) VALUES (N'100', N'BPM服务', NULL, N'0', N'100', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'1001', N'市场部', NULL, N'ccs', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'1002', N'研发部', NULL, N'ccs', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'1003', N'服务部', NULL, N'ccs', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'1004', N'财务部', NULL, N'ccs', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'1005', N'人力资源部', NULL, N'ccs', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL), (N'ccs', N'驰骋公司', NULL, N'100', N'ccs', NULL, NULL, N'', N'', N'', N'', NULL, NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_DeptEmp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_DeptEmp]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_DeptEmp]
GO

CREATE TABLE [dbo].[Port_DeptEmp] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [StationNo] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [StationNoT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_DeptEmp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_DeptEmp
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_DeptEmp] ([MyPK], [FK_Dept], [FK_Emp], [OrgNo], [DeptName], [StationNo], [StationNoT]) VALUES (N'100_100_admin', N'100', N'100_admin', N'100', N'', N'', N''), (N'100_admin', N'100', N'admin', N'100', N'', N'', N''), (N'100_ccs_yuwen', N'100', N'ccs_yuwen', N'ccs', N'集团总部', N'01', N'总经理'), (N'1001_ccs_zhanghaicheng', N'1001', N'ccs_zhanghaicheng', N'ccs', N'集团市场部', N'02', N'市场部经理'), (N'1001_ccs_zhangyifan', N'1001', N'ccs_zhangyifan', N'ccs', N'集团市场部', N'07', N'销售人员岗'), (N'1001_ccs_zhoushengyu', N'1001', N'ccs_zhoushengyu', N'ccs', N'集团市场部', N'07', N'销售人员岗'), (N'1002_ccs_qifenglin', N'1002', N'ccs_qifenglin', N'ccs', N'集团研发部', N'03', N'研发部经理'), (N'1002_ccs_zhoutianjiao', N'1002', N'ccs_zhoutianjiao', N'ccs', N'集团研发部', N'08', N'程序员岗'), (N'1003_ccs_fuhui', N'1003', N'ccs_fuhui', N'ccs', N'客服部经理', N'09', N'技术服务岗'), (N'1003_ccs_guoxiangbin', N'1003', N'ccs_guoxiangbin', N'ccs', N'客服部经理', N'04', N'客服部经理'), (N'1004_ccs_guobaogeng', N'1004', N'ccs_guobaogeng', N'ccs', N'财务部', N'10', N'出纳岗'), (N'1004_ccs_yangyilei', N'1004', N'ccs_yangyilei', N'ccs', N'财务部', N'05', N'财务部经理'), (N'1005_ccs_liping', N'1005', N'ccs_liping', N'ccs', N'集团总部', N'06', N'人力资源部经理'), (N'1005_ccs_liyan', N'1005', N'ccs_liyan', N'ccs', N'集团总部', N'11', N'人力资源助理岗')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_DeptEmpStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_DeptEmpStation]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_DeptEmpStation]
GO

CREATE TABLE [dbo].[Port_DeptEmpStation] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Station] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_DeptEmpStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_DeptEmpStation
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_DeptEmpStation] ([MyPK], [FK_Dept], [FK_Station], [FK_Emp], [OrgNo]) VALUES (N'100_ccs_yuwen_01', N'100', N'01', N'ccs_yuwen', N'ccs'), (N'1001_ccs_zhanghaicheng_02', N'1001', N'02', N'ccs_zhanghaicheng', N'ccs'), (N'1001_ccs_zhangyifan_07', N'1001', N'07', N'ccs_zhangyifan', N'ccs'), (N'1001_ccs_zhoushengyu_07', N'1001', N'07', N'ccs_zhoushengyu', N'ccs'), (N'1002_ccs_qifenglin_03', N'1002', N'03', N'ccs_qifenglin', N'ccs'), (N'1002_ccs_zhoutianjiao_08', N'1002', N'08', N'ccs_zhoutianjiao', N'ccs'), (N'1003_ccs_fuhui_09', N'1003', N'09', N'ccs_fuhui', N'ccs'), (N'1003_ccs_guoxiangbin_04', N'1003', N'04', N'ccs_guoxiangbin', N'ccs'), (N'1004_ccs_guobaogeng_10', N'1004', N'10', N'ccs_guobaogeng', N'ccs'), (N'1004_ccs_yangyilei_05', N'1004', N'05', N'ccs_yangyilei', N'ccs'), (N'1005_ccs_liping_06', N'1005', N'06', N'ccs_liping', N'ccs'), (N'1005_ccs_liyan_11', N'1005', N'11', N'ccs_liyan', N'ccs'), (N'1099_ccs_Guest_12', N'1005', N'12', N'ccs_Guest', N'ccs')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_DeptStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_DeptStation]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_DeptStation]
GO

CREATE TABLE [dbo].[Port_DeptStation] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Station] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_DeptStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_DeptStation
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Emp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Emp]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Emp]
GO

CREATE TABLE [dbo].[Port_Emp] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [UserID] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [PinYin] varchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tel] nvarchar(36) COLLATE Chinese_PRC_CI_AS  NULL,
  [Email] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Leader] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [LeaderName] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpSta] int  NULL,
  [Idx] int  NULL,
  [Pass] nvarchar(90) COLLATE Chinese_PRC_CI_AS DEFAULT '123' NULL,
  [LeaderT] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OrgName] nvarchar(36) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OpenID] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Port_Emp] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'直接主管',
'SCHEMA', N'dbo',
'TABLE', N'Port_Emp',
'COLUMN', N'LeaderT'
GO


-- ----------------------------
-- Records of Port_Emp
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_Emp] ([No], [UserID], [Name], [PinYin], [FK_Dept], [Tel], [Email], [Leader], [LeaderName], [OrgNo], [EmpSta], [Idx], [Pass], [LeaderT], [OrgName], [OpenID]) VALUES (N'100_admin', N'admin', N'管理员', N',guanliyuan,gly,', N'100', N'0531-82374939', N'admin@ccflow.org', N'', N'', N'100', N'0', N'0', N'123', N'', NULL, NULL), (N'admin', N'admin', N'管理员', N',guanliyuan,gly,', N'100', N'0531-82374939', N'admin@ccflow.org', N'', N'', N'100', N'0', N'0', N'123', N'', NULL, NULL), (N'ccs_ccs', N'ccs', N'驰骋管理员', NULL, N'ccs', N'0531-82374939', N'ccs@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_fuhui', N'fuhui', N'福惠', NULL, N'1003', N'0531-82374939', N'fuhui@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_guobaogeng', N'guobaogeng', N'郭宝庚', NULL, N'1004', N'0531-82374939', N'guobaogeng@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_guoxiangbin', N'guoxiangbin', N'郭祥斌', NULL, N'1003', N'0531-82374939', N'guoxiangbin@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_liping', N'liping', N'李萍', NULL, N'1005', N'0531-82374939', N'liping@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_liyan', N'liyan', N'李言', NULL, N'1005', N'0531-82374939', N'liyan@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_qifenglin', N'qifenglin', N'祁凤林', NULL, N'1002', N'0531-82374939', N'qifenglin@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_yangyilei', N'yangyilei', N'杨依雷', NULL, N'1004', N'0531-82374939', N'yangyilei@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_yuwen', N'yuwen', N'钰雯', NULL, N'ccs', N'0531-82374939', N'yuwen@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_zhanghaicheng', N'zhanghaicheng', N'张海成', NULL, N'1001', N'0531-82374939', N'zhanghaicheng@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_zhangyifan', N'zhangyifan', N'张一帆', NULL, N'1001', N'0531-82374939', N'zhangyifan@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_zhoushengyu', N'zhoushengyu', N'周升雨', NULL, N'1001', N'0531-82374939', N'zhoushengyu@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL), (N'ccs_zhoutianjiao', N'zhoutianjiao', N'周天娇', NULL, N'1002', N'0531-82374939', N'zhoutianjiao@ccflow.org', NULL, NULL, N'ccs', N'0', NULL, N'123', N'', NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Org
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Org]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Org]
GO

CREATE TABLE [dbo].[Port_Org] (
  [No] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentName] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [Adminer] varchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [AdminerName] varchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [SSOUrl] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgSta] int  NULL,
  [FlowNums] int  NULL,
  [FrmNums] int  NULL,
  [Users] int  NULL,
  [Depts] int  NULL,
  [GWFS] int  NULL,
  [GWFSOver] int  NULL,
  [Idx] int  NULL,
  [CorpID] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NameFull] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Addr] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [GUID] nvarchar(32) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTReg] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTEnd] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RegIP] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RegFrom] int DEFAULT '0' NULL,
  [WXUseSta] int DEFAULT '0' NULL,
  [UrlFrom] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DB] nvarchar(32) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AgentName] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AgentId] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PermanentCode] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AccessToken] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AccessTokenExpiresIn] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpUserMax] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpAgentMax] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpFullName] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubjectType] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [VerifiedEndTime] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpScale] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpIndustry] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CorpSubIndustry] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Location] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PrivateKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [JieMi] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'None' NULL,
  [JieMiT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT 'None' NULL,
  [KeyOfJieMi] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HomeUrl] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [LoginStyle] int DEFAULT '0' NULL
)
GO

ALTER TABLE [dbo].[Port_Org] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_Org
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_Org] ([No], [Name], [ParentNo], [ParentName], [Adminer], [AdminerName], [SSOUrl], [OrgSta], [FlowNums], [FrmNums], [Users], [Depts], [GWFS], [GWFSOver], [Idx], [CorpID], [NameFull], [Addr], [GUID], [DTReg], [DTEnd], [RegIP], [RDT], [RegFrom], [WXUseSta], [UrlFrom], [DB], [AgentName], [AgentId], [PermanentCode], [AccessToken], [AccessTokenExpiresIn], [CorpUserMax], [CorpAgentMax], [CorpFullName], [SubjectType], [VerifiedEndTime], [CorpScale], [CorpIndustry], [CorpSubIndustry], [Location], [PrivateKey], [JieMi], [JieMiT], [KeyOfJieMi], [HomeUrl], [LoginStyle]) VALUES (N'100', N'Admin组织', NULL, NULL, N'admin', N'admin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'ccs', N'驰骋公司', NULL, NULL, N'ccs', N'驰骋管理员', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_OrgAdminer
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_OrgAdminer]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_OrgAdminer]
GO

CREATE TABLE [dbo].[Port_OrgAdminer] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowSorts] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmTrees] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_OrgAdminer] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_OrgAdminer
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_OrgAdminer] ([MyPK], [OrgNo], [FK_Emp], [EmpName], [FlowSorts], [FrmTrees]) VALUES (N'100_100_admin', N'100', N'admin', N'admin', NULL, NULL), (N'ccs_ccs_ccs', N'ccs', N'ccs_ccs', N'驰骋管理员', NULL, NULL), (N'ccs_ccs_yuwen', N'ccs', N'ccs_yuwen', N'钰雯', NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_OrgAdminerFlowSort
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_OrgAdminerFlowSort]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_OrgAdminerFlowSort]
GO

CREATE TABLE [dbo].[Port_OrgAdminerFlowSort] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefOrgAdminer] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowSortNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_OrgAdminerFlowSort] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_OrgAdminerFlowSort
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_OrgAdminerFrmTree
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_OrgAdminerFrmTree]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_OrgAdminerFrmTree]
GO

CREATE TABLE [dbo].[Port_OrgAdminerFrmTree] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefOrgAdminer] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmTreeNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_OrgAdminerFrmTree] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_OrgAdminerFrmTree
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Station
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Station]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Station]
GO

CREATE TABLE [dbo].[Port_Station] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_StationType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Port_Station] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_Station
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_Station] ([No], [Name], [FK_StationType], [OrgNo], [Idx]) VALUES (N'01', N'总经理', N'1', N'ccs', NULL), (N'02', N'市场部经理', N'2', N'ccs', NULL), (N'03', N'研发部经理', N'2', N'ccs', NULL), (N'04', N'客服部经理', N'2', N'ccs', NULL), (N'05', N'财务部经理', N'2', N'ccs', NULL), (N'06', N'人力资源部经理', N'2', N'ccs', NULL), (N'07', N'销售人员岗', N'3', N'ccs', NULL), (N'08', N'程序员岗', N'3', N'ccs', NULL), (N'09', N'技术服务岗', N'3', N'ccs', NULL), (N'10', N'出纳岗', N'3', N'ccs', NULL), (N'11', N'人力资源助理岗', N'3', N'ccs', NULL), (N'12', N'外来人员岗', N'3', N'ccs', NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_StationType
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_StationType]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_StationType]
GO

CREATE TABLE [dbo].[Port_StationType] (
  [No] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_StationType] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_StationType
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_StationType] ([No], [Name], [Idx], [OrgNo]) VALUES (N'1', N'高层', NULL, N'ccs'), (N'2', N'中层', NULL, N'ccs'), (N'3', N'基层', NULL, N'ccs')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Team
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Team]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Team]
GO

CREATE TABLE [dbo].[Port_Team] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_TeamType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_Team] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_Team
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_TeamEmp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_TeamEmp]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_TeamEmp]
GO

CREATE TABLE [dbo].[Port_TeamEmp] (
  [FK_Team] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Port_TeamEmp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_TeamEmp
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_TeamType
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_TeamType]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_TeamType]
GO

CREATE TABLE [dbo].[Port_TeamType] (
  [No] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Port_TeamType] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_TeamType
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_Token
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_Token]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_Token]
GO

CREATE TABLE [dbo].[Port_Token] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SheBei] int  NULL
)
GO

ALTER TABLE [dbo].[Port_Token] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_Token
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Port_Token] ([MyPK], [EmpNo], [EmpName], [DeptNo], [DeptName], [OrgNo], [OrgName], [RDT], [SheBei]) VALUES (N'315f62e88c4b4bd0892614f9c0db8ac1', N'ccs', N'驰骋管理员', N'ccs', N'', N'ccs', N'BPM服务', N'', N'0'), (N'5a139af6064641f3b87eca8eafcf376e', N'ccs', N'驰骋管理员', N'ccs', N'驰骋公司', N'ccs', N'BPM服务', N'', N'0'), (N'761ff34f6970421284a2325a2aae905e', N'ccs', N'驰骋管理员', N'ccs', N'驰骋公司', N'ccs', N'BPM服务', N'', N'0'), (N'85eb1e3d9a09426fa77f57c90f957617', N'liping', N'李萍', N'1005', N'人力资源部', N'ccs', N'BPM服务', N'', N'0'), (N'abe999f4c60c42dba82fe0f217fdad1b', N'zhanghaicheng', N'张海成', N'1001', N'市场部', N'ccs', N'BPM服务', N'', N'0'), (N'd81519b91f2c483594869687a0c5e48e', N'yuwen', N'钰雯', N'ccs', N'驰骋公司', N'ccs', N'BPM服务', N'', N'0'), (N'f33cc8b580e94afda05a9f491f2b7adf', N'ccs', N'驰骋管理员', N'ccs', N'驰骋公司', N'ccs', N'BPM服务', N'', N'0')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Port_User
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Port_User]') AND type IN ('U'))
	DROP TABLE [dbo].[Port_User]
GO

CREATE TABLE [dbo].[Port_User] (
  [No] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Pass] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Token] nvarchar(36) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tel] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [Email] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PinYin] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [unionid] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [OpenID] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [OpenID2] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Port_User] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Port_User
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Pub_NY
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Pub_NY]') AND type IN ('U'))
	DROP TABLE [dbo].[Pub_NY]
GO

CREATE TABLE [dbo].[Pub_NY] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] varchar(3900) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Pub_NY] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Pub_NY
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_DocFile
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_DocFile]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_DocFile]
GO

CREATE TABLE [dbo].[Sys_DocFile] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FileName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileSize] int  NULL,
  [FileType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [D1] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D2] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D3] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D4] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D5] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D6] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D7] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D8] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D9] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D10] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D11] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D12] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D13] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D14] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D15] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D16] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D17] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D18] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D19] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [D20] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_DocFile] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_DocFile
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_EnCfg
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_EnCfg]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_EnCfg]
GO

CREATE TABLE [dbo].[Sys_EnCfg] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [UIRowStyleGlo] int  NULL,
  [IsEnableDouclickGlo] int  NULL,
  [IsEnableFocusField] int  NULL,
  [FocusField] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnableRefFunc] int  NULL,
  [IsEnableOpenICON] int  NULL,
  [PosRefFuncMobile] int  NULL,
  [IsJM] int  NULL,
  [IsSelectMore] int  NULL,
  [MoveToShowWay] int  NULL,
  [TableCol] int  NULL,
  [IsShowIcon] int  NULL,
  [KeyLabel] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [KeyPlaceholder] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [PageSize] int  NULL,
  [FontSize] int  NULL,
  [EditerType] int  NULL,
  [IsCond] int  NULL,
  [OrderBy] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsDeSc] int  NULL,
  [FJSavePath] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FJWebPath] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Datan] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [UI] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColorSet] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FieldSet] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ForamtFunc] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Drill] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MobileFieldShowModel] int  NULL,
  [MobileShowContent] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnsShowLeft] int  NULL,
  [IsImp] int  NULL,
  [ImpFuncUrl] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsExp] int  NULL,
  [IsGroup] int  NULL,
  [IsEnableLazyload] int  NULL,
  [BtnLab1] nvarchar(70) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnJS1] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnLab2] nvarchar(70) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnJS2] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnLab3] nvarchar(70) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnJS3] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnBtnLab1] nvarchar(70) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnBtnJS1] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnBtnLab2] nvarchar(70) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnBtnJS2] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [SearchUrlOpenType] int  NULL,
  [IsRefreshParentPage] int  NULL,
  [UrlExt] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [DoubleOrClickModel] int  NULL,
  [OpenModel] int  NULL,
  [OpenModelFunc] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [WinCardW] int  NULL,
  [WinCardH] int  NULL,
  [AtPara] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [PanelIconSize] int DEFAULT '1' NULL,
  [EnableMobileSelect] int DEFAULT '1' NULL,
  [IconEnumAttr] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsEnableEnumColor] int DEFAULT '0' NULL,
  [EnumColorField] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FieldGroupDisplayMode] int DEFAULT '1' NULL,
  [ShowNumIdx] int DEFAULT '0' NULL,
  [IsRpt] int DEFAULT '1' NULL,
  [IsBigScreen] int DEFAULT '0' NULL,
  [ShowColModel] int DEFAULT '0' NULL,
  [ShowCols] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HideAttrModel] int DEFAULT '0' NULL,
  [HideAttrs] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HideMethodModel] int DEFAULT '0' NULL,
  [HideMethods] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MHideAttrModel] int DEFAULT '0' NULL,
  [MHideAttrs] nvarchar(900) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MHideMethodModel] int DEFAULT '0' NULL,
  [MHideMethods] nvarchar(900) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Sys_EnCfg] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_EnCfg
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_EnCfg] ([No], [UIRowStyleGlo], [IsEnableDouclickGlo], [IsEnableFocusField], [FocusField], [IsEnableRefFunc], [IsEnableOpenICON], [PosRefFuncMobile], [IsJM], [IsSelectMore], [MoveToShowWay], [TableCol], [IsShowIcon], [KeyLabel], [KeyPlaceholder], [PageSize], [FontSize], [EditerType], [IsCond], [OrderBy], [IsDeSc], [FJSavePath], [FJWebPath], [Datan], [UI], [ColorSet], [FieldSet], [ForamtFunc], [Drill], [MobileFieldShowModel], [MobileShowContent], [BtnsShowLeft], [IsImp], [ImpFuncUrl], [IsExp], [IsGroup], [IsEnableLazyload], [BtnLab1], [BtnJS1], [BtnLab2], [BtnJS2], [BtnLab3], [BtnJS3], [EnBtnLab1], [EnBtnJS1], [EnBtnLab2], [EnBtnJS2], [SearchUrlOpenType], [IsRefreshParentPage], [UrlExt], [DoubleOrClickModel], [OpenModel], [OpenModelFunc], [WinCardW], [WinCardH], [AtPara], [PanelIconSize], [EnableMobileSelect], [IconEnumAttr], [IsEnableEnumColor], [EnumColorField], [FieldGroupDisplayMode], [ShowNumIdx], [IsRpt], [IsBigScreen], [ShowColModel], [ShowCols], [HideAttrModel], [HideAttrs], [HideMethodModel], [HideMethods], [MHideAttrModel], [MHideAttrs], [MHideMethodModel], [MHideMethods]) VALUES (N'TS.FrmUI.MapAttrDT', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.FrmUI.MapAttrEnum', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.FrmUI.MapAttrNum', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.FrmUI.SysEnumMainInt', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.MapExt.GPEDateFieldInputRole', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.MapExt.GPEReqDays', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.WF.ARStation', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.WF.CondFrmNum', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.WF.SelecterFree', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.WF.Template.NodeExt', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N''), (N'TS.WorkOpt.Send', NULL, NULL, N'0', N'', N'0', N'0', N'0', N'0', N'0', NULL, NULL, NULL, N'', N'', N'20', NULL, NULL, N'0', N'', N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1', N'', N'0', N'1', NULL, N'', NULL, N'', NULL, N'', NULL, NULL, NULL, NULL, NULL, N'0', N'1', N'', NULL, N'6', N'', NULL, NULL, NULL, N'1', N'1', N'', N'0', N'', N'1', N'0', N'1', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'0', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_Enum
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_Enum]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_Enum]
GO

CREATE TABLE [dbo].[Sys_Enum] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Lab] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnumKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IntKey] int  NULL,
  [Lang] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [StrKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPK] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ValColor] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '#000' NULL
)
GO

ALTER TABLE [dbo].[Sys_Enum] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_Enum
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'AlertType_CH_0', N'短信', N'AlertType', N'0', N'CH', N'', N'', N'', NULL), (N'AlertType_CH_1', N'邮件', N'AlertType', N'1', N'CH', N'', N'', N'', NULL), (N'AlertType_CH_2', N'邮件与短信', N'AlertType', N'2', N'CH', N'', N'', N'', NULL), (N'AlertType_CH_3', N'系统(内部)消息', N'AlertType', N'3', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_0', N'不接收', N'AlertWay', N'0', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_1', N'短信', N'AlertWay', N'1', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_2', N'邮件', N'AlertWay', N'2', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_3', N'内部消息', N'AlertWay', N'3', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_4', N'QQ消息', N'AlertWay', N'4', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_5', N'RTX消息', N'AlertWay', N'5', N'CH', N'', N'', N'', NULL), (N'AlertWay_CH_6', N'MSN消息', N'AlertWay', N'6', N'CH', N'', N'', N'', NULL), (N'AllSubFlowOverRole_CH_0', N'不处理', N'AllSubFlowOverRole', N'0', N'CH', N'', N'', N'', NULL), (N'AllSubFlowOverRole_CH_1', N'当前流程自动运行下一步', N'AllSubFlowOverRole', N'1', N'CH', N'', N'', N'', NULL), (N'AllSubFlowOverRole_CH_2', N'结束当前流程', N'AllSubFlowOverRole', N'2', N'CH', N'', N'', N'', NULL), (N'AppType_CH_0', N'外部Url连接', N'AppType', N'0', N'CH', N'', N'', N'', NULL), (N'AppType_CH_1', N'本地可执行文件', N'AppType', N'1', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_0', N'PK-主键', N'AthCtrlWay', N'0', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_1', N'FID-干流程ID', N'AthCtrlWay', N'1', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_2', N'PWorkID-父流程ID', N'AthCtrlWay', N'2', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_3', N'仅能查看自己上传的附件', N'AthCtrlWay', N'3', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_4', N'WorkID-按照WorkID计算(对流程节点表单有效)', N'AthCtrlWay', N'4', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_5', N'P2WorkID', N'AthCtrlWay', N'5', N'CH', N'', N'', N'', NULL), (N'AthCtrlWay_CH_6', N'P3WorkID', N'AthCtrlWay', N'6', N'CH', N'', N'', N'', NULL), (N'AthEditModel_CH_0', N'只读', N'AthEditModel', N'0', N'CH', N'', N'', N'', NULL), (N'AthEditModel_CH_1', N'可编辑全部区域', N'AthEditModel', N'1', N'CH', N'', N'', N'', NULL), (N'AthEditModel_CH_2', N'可编辑非数据标签区域', N'AthEditModel', N'2', N'CH', N'', N'', N'', NULL), (N'AthEditType_CH_0', N'Office插件', N'AthEditType', N'0', N'CH', N'', N'', N'', NULL), (N'AthEditType_CH_1', N'WPS插件', N'AthEditType', N'1', N'CH', N'', N'', N'', NULL), (N'AthRunModel_CH_0', N'流水模式', N'AthRunModel', N'0', N'CH', N'', N'', N'', NULL), (N'AthRunModel_CH_1', N'固定模式', N'AthRunModel', N'1', N'CH', N'', N'', N'', NULL), (N'AthRunModel_CH_2', N'自定义页面', N'AthRunModel', N'2', N'CH', N'', N'', N'', NULL), (N'AthSaveWay_CH_0', N'保存到web服务器', N'AthSaveWay', N'0', N'CH', N'', N'', N'', NULL), (N'AthSaveWay_CH_1', N'保存到数据库', N'AthSaveWay', N'1', N'CH', N'', N'', N'', NULL), (N'AthSaveWay_CH_2', N'ftp服务器', N'AthSaveWay', N'2', N'CH', N'', N'', N'', NULL), (N'AthSaveWay_CH_3', N'保存到对象存储OSS', N'AthSaveWay', N'3', N'CH', N'', N'', N'', NULL), (N'AthSingleRole_CH_0', N'不使用模板', N'AthSingleRole', N'0', N'CH', N'', N'', N'', NULL), (N'AthSingleRole_CH_1', N'使用上传模板', N'AthSingleRole', N'1', N'CH', N'', N'', N'', NULL), (N'AthSingleRole_CH_2', N'使用上传模板自动加载数据标签', N'AthSingleRole', N'2', N'CH', N'', N'', N'', NULL), (N'AthUploadWay_CH_0', N'继承模式', N'AthUploadWay', N'0', N'CH', N'', N'', N'', NULL), (N'AthUploadWay_CH_1', N'协作模式', N'AthUploadWay', N'1', N'CH', N'', N'', N'', NULL), (N'AuthorWay_CH_0', N'不授权', N'AuthorWay', N'0', N'CH', N'', N'', N'', NULL), (N'AuthorWay_CH_1', N'全部流程授权', N'AuthorWay', N'1', N'CH', N'', N'', N'', NULL), (N'AuthorWay_CH_2', N'指定流程授权', N'AuthorWay', N'2', N'CH', N'', N'', N'', NULL), (N'AuthType_CH_0', N'全部流程', N'AuthType', N'0', N'CH', N'', N'', N'', NULL), (N'AuthType_CH_1', N'指定流程', N'AuthType', N'1', N'CH', N'', N'', N'', NULL), (N'AuthType_CH_2', N'指定流程+部门', N'AuthType', N'2', N'CH', N'', N'', N'', NULL), (N'BackCopyRole_CH_0', N'不反填', N'BackCopyRole', N'0', N'CH', N'', N'', N'', NULL), (N'BackCopyRole_CH_1', N'字段自动匹配', N'BackCopyRole', N'1', N'CH', N'', N'', N'', NULL), (N'BackCopyRole_CH_2', N'按照设置的格式', N'BackCopyRole', N'2', N'CH', N'', N'', N'', NULL), (N'BackCopyRole_CH_3', N'混合模式', N'BackCopyRole', N'3', N'CH', N'', N'', N'', NULL), (N'BBSPRI_CH_0', N'普通', N'BBSPRI', N'0', N'CH', N'', N'', N'', NULL), (N'BBSPRI_CH_1', N'紧急', N'BBSPRI', N'1', N'CH', N'', N'', N'', NULL), (N'BBSPRI_CH_2', N'火急', N'BBSPRI', N'2', N'CH', N'', N'', N'', NULL), (N'BBSSta_CH_0', N'发布中', N'BBSSta', N'0', N'CH', N'', N'', N'', NULL), (N'BBSSta_CH_1', N'禁用', N'BBSSta', N'1', N'CH', N'', N'', N'', NULL), (N'BillFileType_CH_0', N'Word', N'BillFileType', N'0', N'CH', N'', N'', N'', NULL), (N'BillFileType_CH_1', N'PDF', N'BillFileType', N'1', N'CH', N'', N'', N'', NULL), (N'BillFileType_CH_2', N'Excel(未完成)', N'BillFileType', N'2', N'CH', N'', N'', N'', NULL), (N'BillFileType_CH_3', N'Html(未完成)', N'BillFileType', N'3', N'CH', N'', N'', N'', NULL), (N'BillFrmType_CH_0', N'经典表单', N'BillFrmType', N'0', N'CH', N'', N'', N'', NULL), (N'BillFrmType_CH_1', N'自由表单', N'BillFrmType', N'1', N'CH', N'', N'', N'', NULL), (N'BillFrmType_CH_8', N'开发者表单', N'BillFrmType', N'8', N'CH', N'', N'', N'', NULL), (N'BillSta_CH_0', N'运行中', N'BillSta', N'0', N'CH', N'', N'', N'', NULL), (N'BillSta_CH_1', N'已完成', N'BillSta', N'1', N'CH', N'', N'', N'', NULL), (N'BillSta_CH_2', N'其他', N'BillSta', N'2', N'CH', N'', N'', N'', NULL), (N'BillState_CH_0', N'空白', N'BillState', N'0', N'CH', N'', N'', N'', NULL), (N'BillState_CH_1', N'草稿', N'BillState', N'1', N'CH', N'', N'', N'', NULL), (N'BillState_CH_100', N'归档', N'BillState', N'100', N'CH', N'', N'', N'', NULL), (N'BillState_CH_2', N'编辑中', N'BillState', N'2', N'CH', N'', N'', N'', NULL), (N'CancelRole_CH_0', N'上一步可以撤销', N'CancelRole', N'0', N'CH', N'', N'', N'', NULL), (N'CancelRole_CH_1', N'不能撤销', N'CancelRole', N'1', N'CH', N'', N'', N'', NULL), (N'CancelRole_CH_2', N'上一步与开始节点可以撤销', N'CancelRole', N'2', N'CH', N'', N'', N'', NULL), (N'CancelRole_CH_3', N'指定的节点可以撤销', N'CancelRole', N'3', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_0', N'不能抄送', N'CCRole', N'0', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_1', N'手工抄送', N'CCRole', N'1', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_2', N'自动抄送', N'CCRole', N'2', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_3', N'手工与自动', N'CCRole', N'3', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_4', N'按表单SysCCEmps字段计算', N'CCRole', N'4', N'CH', N'', N'', N'', NULL), (N'CCRole_CH_5', N'在发送前打开抄送窗口', N'CCRole', N'5', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_0', N'按表单字段计算', N'CCRoleExcType', N'0', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_1', N'按人员计算', N'CCRoleExcType', N'1', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_2', N'按角色计算', N'CCRoleExcType', N'2', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_3', N'按部门计算', N'CCRoleExcType', N'3', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_4', N'按SQL计算', N'CCRoleExcType', N'4', N'CH', N'', N'', N'', NULL), (N'CCRoleExcType_CH_5', N'按接受人规则计算', N'CCRoleExcType', N'5', N'CH', N'', N'', N'', NULL), (N'CCSta_CH_0', N'未读', N'CCSta', N'0', N'CH', N'', N'', N'', NULL), (N'CCSta_CH_1', N'已读', N'CCSta', N'1', N'CH', N'', N'', N'', NULL), (N'CCSta_CH_2', N'已回复', N'CCSta', N'2', N'CH', N'', N'', N'', NULL), (N'CCSta_CH_3', N'删除', N'CCSta', N'3', N'CH', N'', N'', N'', NULL), (N'CHAlertRole_CH_0', N'不提示', N'CHAlertRole', N'0', N'CH', N'', N'', N'', NULL), (N'CHAlertRole_CH_1', N'每天1次', N'CHAlertRole', N'1', N'CH', N'', N'', N'', NULL), (N'CHAlertRole_CH_2', N'每天2次', N'CHAlertRole', N'2', N'CH', N'', N'', N'', NULL), (N'CHAlertWay_CH_0', N'邮件', N'CHAlertWay', N'0', N'CH', N'', N'', N'', NULL), (N'CHAlertWay_CH_1', N'短信', N'CHAlertWay', N'1', N'CH', N'', N'', N'', NULL), (N'CHAlertWay_CH_2', N'CCIM即时通讯', N'CHAlertWay', N'2', N'CH', N'', N'', N'', NULL), (N'ChartType_CH_0', N'几何图形', N'ChartType', N'0', N'CH', N'', N'', N'', NULL), (N'ChartType_CH_1', N'肖像图片', N'ChartType', N'1', N'CH', N'', N'', N'', NULL), (N'CHRole_CH_0', N'禁用', N'CHRole', N'0', N'CH', N'', N'', N'', NULL), (N'CHRole_CH_1', N'启用', N'CHRole', N'1', N'CH', N'', N'', N'', NULL), (N'CHRole_CH_2', N'只读', N'CHRole', N'2', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'CHRole_CH_3', N'启用并可以调整流程应完成时间', N'CHRole', N'3', N'CH', N'', N'', N'', NULL), (N'CHSta_CH_0', N'及时完成', N'CHSta', N'0', N'CH', N'', N'', N'', NULL), (N'CHSta_CH_1', N'按期完成', N'CHSta', N'1', N'CH', N'', N'', N'', NULL), (N'CHSta_CH_2', N'逾期完成', N'CHSta', N'2', N'CH', N'', N'', N'', NULL), (N'CHSta_CH_3', N'超期完成', N'CHSta', N'3', N'CH', N'', N'', N'', NULL), (N'CodeStruct_CH_0', N'编号名称类型', N'CodeStruct', N'0', N'CH', N'', N'', N'', NULL), (N'CodeStruct_CH_1', N'树结构类型', N'CodeStruct', N'1', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_1', N'跨1个单元格', N'ColSpanAttrDT', N'1', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_2', N'跨2个单元格', N'ColSpanAttrDT', N'2', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_3', N'跨3个单元格', N'ColSpanAttrDT', N'3', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_4', N'跨4个单元格', N'ColSpanAttrDT', N'4', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_5', N'跨5个单元格', N'ColSpanAttrDT', N'5', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrDT_CH_6', N'跨6个单元格', N'ColSpanAttrDT', N'6', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrString_CH_1', N'跨1个单元格', N'ColSpanAttrString', N'1', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrString_CH_2', N'跨2个单元格', N'ColSpanAttrString', N'2', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrString_CH_3', N'跨3个单元格', N'ColSpanAttrString', N'3', N'CH', N'', N'', N'', NULL), (N'ColSpanAttrString_CH_4', N'跨4个单元格', N'ColSpanAttrString', N'4', N'CH', N'', N'', N'', NULL), (N'CtrlEnableType_CH_0', N'禁用(隐藏)', N'CtrlEnableType', N'0', N'CH', N'', N'', N'', NULL), (N'CtrlEnableType_CH_1', N'启用', N'CtrlEnableType', N'1', N'CH', N'', N'', N'', NULL), (N'CtrlEnableType_CH_2', N'只读', N'CtrlEnableType', N'2', N'CH', N'', N'', N'', NULL), (N'CtrlWay_CH_0', N'单个', N'CtrlWay', N'0', N'CH', N'', N'', N'', NULL), (N'CtrlWay_CH_1', N'多个', N'CtrlWay', N'1', N'CH', N'', N'', N'', NULL), (N'CtrlWay_CH_2', N'指定', N'CtrlWay', N'2', N'CH', N'', N'', N'', NULL), (N'DBListDBType_CH_0', N'数据库查询SQL', N'DBListDBType', N'0', N'CH', N'', N'', N'', NULL), (N'DBListDBType_CH_1', N'执行Url返回Json', N'DBListDBType', N'1', N'CH', N'', N'', N'', NULL), (N'DBListDBType_CH_2', N'执行存储过程', N'DBListDBType', N'2', N'CH', N'', N'', N'', NULL), (N'DBSrcType_CH_0', N'当前表单数据', N'DBSrcType', N'0', N'CH', N'', N'', N'', NULL), (N'DBSrcType_CH_1', N'指定SQL数据源', N'DBSrcType', N'1', N'CH', N'', N'', N'', NULL), (N'DefaultChart_CH_0', N'饼图', N'DefaultChart', N'0', N'CH', N'', N'', N'', NULL), (N'DefaultChart_CH_1', N'折线图', N'DefaultChart', N'1', N'CH', N'', N'', N'', NULL), (N'DefaultChart_CH_2', N'柱状图', N'DefaultChart', N'2', N'CH', N'', N'', N'', NULL), (N'DefaultChart_CH_3', N'显示环形图', N'DefaultChart', N'3', N'CH', N'', N'', N'', NULL), (N'DefValType_CH_0', N'默认值为空', N'DefValType', N'0', N'CH', N'', N'', N'', NULL), (N'DefValType_CH_1', N'按照设置的默认值设置', N'DefValType', N'1', N'CH', N'', N'', N'', NULL), (N'DelEnable_CH_0', N'不能删除', N'DelEnable', N'0', N'CH', N'', N'', N'', NULL), (N'DelEnable_CH_1', N'逻辑删除', N'DelEnable', N'1', N'CH', N'', N'', N'', NULL), (N'DelEnable_CH_2', N'记录日志方式删除', N'DelEnable', N'2', N'CH', N'', N'', N'', NULL), (N'DelEnable_CH_3', N'彻底删除', N'DelEnable', N'3', N'CH', N'', N'', N'', NULL), (N'DelEnable_CH_4', N'让用户决定删除方式', N'DelEnable', N'4', N'CH', N'', N'', N'', NULL), (N'DeleteWay_CH_0', N'不能删除', N'DeleteWay', N'0', N'CH', N'', N'', N'', NULL), (N'DeleteWay_CH_1', N'删除所有', N'DeleteWay', N'1', N'CH', N'', N'', N'', NULL), (N'DeleteWay_CH_2', N'只能删除自己上传的', N'DeleteWay', N'2', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_0', N'按岗位智能计算', N'DeliveryWay', N'0', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_1', N'按部门计算', N'DeliveryWay', N'1', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_10', N'按岗位计算(以部门集合为纬度)', N'DeliveryWay', N'10', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_100', N'按ccflow的BPM模式处理', N'DeliveryWay', N'100', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_11', N'按指定节点的人员岗位计算', N'DeliveryWay', N'11', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_12', N'按SQL确定子线程接受人与数据源', N'DeliveryWay', N'12', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_13', N'由上一节点的明细表来决定子线程的接受人', N'DeliveryWay', N'13', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_14', N'仅按岗位计算', N'DeliveryWay', N'14', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_2', N'按SQL计算', N'DeliveryWay', N'2', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_3', N'按设置的人员计算', N'DeliveryWay', N'3', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_4', N'由上一步发送人选择', N'DeliveryWay', N'4', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_5', N'按上一节点表单SysSendEmps字段计算', N'DeliveryWay', N'5', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_6', N'按上一步操作人员', N'DeliveryWay', N'6', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_7', N'按上一步操作人员并自动跳转', N'DeliveryWay', N'7', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_8', N'按指定节点的工作人员计算', N'DeliveryWay', N'8', N'CH', N'', N'', N'', NULL), (N'DeliveryWay_CH_9', N'按岗位与部门交集计算', N'DeliveryWay', N'9', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_0', N'本地的类', N'DictSrcType', N'0', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_1', N'创建表', N'DictSrcType', N'1', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_2', N'表或视图', N'DictSrcType', N'2', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_3', N'SQL查询表', N'DictSrcType', N'3', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_4', N'WebServices', N'DictSrcType', N'4', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_5', N'微服务Handler外部数据源', N'DictSrcType', N'5', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_6', N'JavaScript外部数据源', N'DictSrcType', N'6', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_7', N'系统字典表', N'DictSrcType', N'7', N'CH', N'', N'', N'', NULL), (N'DictSrcType_CH_8', N'WebApi接口', N'DictSrcType', N'8', N'CH', N'', N'', N'', NULL), (N'DirType_CH_0', N'目录', N'DirType', N'0', N'CH', N'', N'', N'', NULL), (N'DirType_CH_1', N'系统', N'DirType', N'1', N'CH', N'', N'', N'', NULL), (N'DKSta_CH_0', N'未提交123', N'DKSta', N'0', N'CH', N'', N'', N'', NULL), (N'DKSta_CH_1', N'已提交', N'DKSta', N'1', N'CH', N'', N'', N'', NULL), (N'DKSta_CH_2', N'已审核', N'DKSta', N'2', N'CH', N'', N'', N'', NULL), (N'DocType_CH_0', N'正式公文', N'DocType', N'0', N'CH', N'', N'', N'', NULL), (N'DocType_CH_1', N'便函', N'DocType', N'1', N'CH', N'', N'', N'', NULL), (N'DoubleOrClickModel_CH_0', N'双击行弹窗', N'DoubleOrClickModel', N'0', N'CH', N'', N'', N'', NULL), (N'DoubleOrClickModel_CH_1', N'单击行弹窗', N'DoubleOrClickModel', N'1', N'CH', N'', N'', N'', NULL), (N'Draft_CH_0', N'无(不设草稿)', N'Draft', N'0', N'CH', N'', N'', N'', NULL), (N'Draft_CH_1', N'保存到待办', N'Draft', N'1', N'CH', N'', N'', N'', NULL), (N'Draft_CH_2', N'保存到草稿箱', N'Draft', N'2', N'CH', N'', N'', N'', NULL), (N'DtlAddRecModel_CH_0', N'按设置的数量初始化空白行', N'DtlAddRecModel', N'0', N'CH', N'', N'', N'', NULL), (N'DtlAddRecModel_CH_1', N'用按钮增加空白行', N'DtlAddRecModel', N'1', N'CH', N'', N'', N'', NULL), (N'DtlOpenType_CH_0', N'操作员', N'DtlOpenType', N'0', N'CH', N'', N'', N'', NULL), (N'DtlOpenType_CH_1', N'WorkID-流程ID', N'DtlOpenType', N'1', N'CH', N'', N'', N'', NULL), (N'DtlOpenType_CH_2', N'FID-干流程ID', N'DtlOpenType', N'2', N'CH', N'', N'', N'', NULL), (N'DtlOpenType_CH_3', N'PWorkID-父流程WorkID', N'DtlOpenType', N'3', N'CH', N'', N'', N'', NULL), (N'DtlSaveModel_CH_0', N'自动存盘(失去焦点自动存盘)', N'DtlSaveModel', N'0', N'CH', N'', N'', N'', NULL), (N'DtlSaveModel_CH_1', N'手动存盘(保存按钮触发存盘)', N'DtlSaveModel', N'1', N'CH', N'', N'', N'', NULL), (N'DtlVer_CH_0', N'2017传统版', N'DtlVer', N'0', N'CH', N'', N'', N'', NULL), (N'DTSDataWay_CH_0', N'不同步', N'DTSDataWay', N'0', N'CH', N'', N'', N'', NULL), (N'DTSDataWay_CH_1', N'同步全部的相同字段的数据', N'DTSDataWay', N'1', N'CH', N'', N'', N'', NULL), (N'DTSDataWay_CH_2', N'同步指定字段的数据', N'DTSDataWay', N'2', N'CH', N'', N'', N'', NULL), (N'DTSearchWay_CH_0', N'不启用', N'DTSearchWay', N'0', N'CH', N'', N'', N'', NULL), (N'DTSearchWay_CH_1', N'按日期', N'DTSearchWay', N'1', N'CH', N'', N'', N'', NULL), (N'DTSearchWay_CH_2', N'按日期时间', N'DTSearchWay', N'2', N'CH', N'', N'', N'', NULL), (N'DTSWay_CH_0', N'不考核', N'DTSWay', N'0', N'CH', N'', N'', N'', NULL), (N'DTSWay_CH_1', N'按照时效考核', N'DTSWay', N'1', N'CH', N'', N'', N'', NULL), (N'DTSWay_CH_2', N'按照工作量考核', N'DTSWay', N'2', N'CH', N'', N'', N'', NULL), (N'EditerType_CH_0', N'无编辑器', N'EditerType', N'0', N'CH', N'', N'', N'', NULL), (N'EditerType_CH_1', N'Sina编辑器0', N'EditerType', N'1', N'CH', N'', N'', N'', NULL), (N'EditerType_CH_2', N'FKEditer', N'EditerType', N'2', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'EditerType_CH_3', N'KindEditor', N'EditerType', N'3', N'CH', N'', N'', N'', NULL), (N'EditerType_CH_4', N'百度的UEditor', N'EditerType', N'4', N'CH', N'', N'', N'', NULL), (N'EditModel_CH_0', N'表格模式', N'EditModel', N'0', N'CH', N'', N'', N'', NULL), (N'EditModel_CH_1', N'经典表单', N'EditModel', N'1', N'CH', N'', N'', N'', NULL), (N'EditModel_CH_2', N'开发者表单', N'EditModel', N'2', N'CH', N'', N'', N'', NULL), (N'EntityEditModel_CH_0', N'表格', N'EntityEditModel', N'0', N'CH', N'', N'', N'', NULL), (N'EntityEditModel_CH_1', N'行编辑', N'EntityEditModel', N'1', N'CH', N'', N'', N'', NULL), (N'EntityShowModel_CH_0', N'表格', N'EntityShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'EntityShowModel_CH_1', N'树干模式', N'EntityShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'EntityType_CH_0', N'独立表单', N'EntityType', N'0', N'CH', N'', N'', N'', NULL), (N'EntityType_CH_1', N'单据', N'EntityType', N'1', N'CH', N'', N'', N'', NULL), (N'EntityType_CH_2', N'编号名称实体', N'EntityType', N'2', N'CH', N'', N'', N'', NULL), (N'EntityType_CH_3', N'树结构实体', N'EntityType', N'3', N'CH', N'', N'', N'', NULL), (N'EnumType_CH_0', N'Int类型枚举', N'EnumType', N'0', N'CH', N'', N'', N'', NULL), (N'EnumType_CH_1', N'String类型枚举', N'EnumType', N'1', N'CH', N'', N'', N'', NULL), (N'EnumUIContralType_CH_1', N'下拉框', N'EnumUIContralType', N'1', N'CH', N'', N'', N'', NULL), (N'EnumUIContralType_CH_2', N'复选框', N'EnumUIContralType', N'2', N'CH', N'', N'', N'', NULL), (N'EnumUIContralType_CH_3', N'单选按钮', N'EnumUIContralType', N'3', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_0', N'禁用', N'EventDoType', N'0', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_1', N'执行存储过程', N'EventDoType', N'1', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_2', N'执行SQL语句', N'EventDoType', N'2', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_3', N'执行URL', N'EventDoType', N'3', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_4', N'WebServices(暂不提供支持)', N'EventDoType', N'4', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_5', N'执行ddl文件的类与方法(暂不提供支持)', N'EventDoType', N'5', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_6', N'EventBase类', N'EventDoType', N'6', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_7', N'业务单元', N'EventDoType', N'7', N'CH', N'', N'', N'', NULL), (N'EventDoType_CH_8', N'自定义WebApi', N'EventDoType', N'8', N'CH', N'', N'', N'', NULL), (N'EventType_CH_0', N'禁用', N'EventType', N'0', N'CH', N'', N'', N'', NULL), (N'EventType_CH_1', N'执行URL', N'EventType', N'1', N'CH', N'', N'', N'', NULL), (N'EventType_CH_2', N'执行CCFromRef.js', N'EventType', N'2', N'CH', N'', N'', N'', NULL), (N'ExcType_CH_0', N'超链接', N'ExcType', N'0', N'CH', N'', N'', N'', NULL), (N'ExcType_CH_1', N'函数', N'ExcType', N'1', N'CH', N'', N'', N'', NULL), (N'ExpType_CH_3', N'按照SQL计算', N'ExpType', N'3', N'CH', N'', N'', N'', NULL), (N'ExpType_CH_4', N'按照参数计算', N'ExpType', N'4', N'CH', N'', N'', N'', NULL), (N'FieldGroupDisplayMode_CH_1', N'tab', N'FieldGroupDisplayMode', N'1', N'CH', N'', N'', N'', NULL), (N'FieldGroupDisplayMode_CH_2', N'group-bar', N'FieldGroupDisplayMode', N'2', N'CH', N'', N'', N'', NULL), (N'FileType_CH_0', N'普通附件', N'FileType', N'0', N'CH', N'', N'', N'', NULL), (N'FileType_CH_1', N'图片文件', N'FileType', N'1', N'CH', N'', N'', N'', NULL), (N'FJOpen_CH_0', N'关闭附件', N'FJOpen', N'0', N'CH', N'', N'', N'', NULL), (N'FJOpen_CH_1', N'操作员', N'FJOpen', N'1', N'CH', N'', N'', N'', NULL), (N'FJOpen_CH_2', N'工作ID', N'FJOpen', N'2', N'CH', N'', N'', N'', NULL), (N'FJOpen_CH_3', N'流程ID', N'FJOpen', N'3', N'CH', N'', N'', N'', NULL), (N'FlowBBSRole_CH_0', N'禁用', N'FlowBBSRole', N'0', N'CH', N'', N'', N'', NULL), (N'FlowBBSRole_CH_1', N'启用', N'FlowBBSRole', N'1', N'CH', N'', N'', N'', NULL), (N'FlowBBSRole_CH_2', N'只读', N'FlowBBSRole', N'2', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_0', N'专业模式', N'FlowDevModel', N'0', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_1', N'极简模式', N'FlowDevModel', N'1', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_2', N'累加模式', N'FlowDevModel', N'2', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_3', N'绑定单表单', N'FlowDevModel', N'3', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_4', N'绑定多表单', N'FlowDevModel', N'4', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_5', N'SDK表单', N'FlowDevModel', N'5', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_6', N'嵌入式表单', N'FlowDevModel', N'6', N'CH', N'', N'', N'', NULL), (N'FlowDevModel_CH_7', N'物联网流程', N'FlowDevModel', N'7', N'CH', N'', N'', N'', NULL), (N'FlowRunWay_CH_0', N'手工启动', N'FlowRunWay', N'0', N'CH', N'', N'', N'', NULL), (N'FlowRunWay_CH_1', N'指定人员按时启动', N'FlowRunWay', N'1', N'CH', N'', N'', N'', NULL), (N'FlowRunWay_CH_2', N'数据集按时启动', N'FlowRunWay', N'2', N'CH', N'', N'', N'', NULL), (N'FlowRunWay_CH_3', N'触发式启动', N'FlowRunWay', N'3', N'CH', N'', N'', N'', NULL), (N'FLRole_CH_0', N'按接受人', N'FLRole', N'0', N'CH', N'', N'', N'', NULL), (N'FLRole_CH_1', N'按部门', N'FLRole', N'1', N'CH', N'', N'', N'', NULL), (N'FLRole_CH_2', N'按岗位', N'FLRole', N'2', N'CH', N'', N'', N'', NULL), (N'FrmDBRemarkEnable_CH_0', N'禁用', N'FrmDBRemarkEnable', N'0', N'CH', N'', N'', N'', NULL), (N'FrmDBRemarkEnable_CH_1', N'可编辑', N'FrmDBRemarkEnable', N'1', N'CH', N'', N'', N'', NULL), (N'FrmDBRemarkEnable_CH_2', N'不可编辑', N'FrmDBRemarkEnable', N'2', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_0', N'始终启用', N'FrmEnableRole', N'0', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_1', N'有数据时启用', N'FrmEnableRole', N'1', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_2', N'有参数时启用', N'FrmEnableRole', N'2', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_3', N'按表单的字段表达式', N'FrmEnableRole', N'3', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_4', N'按SQL表达式', N'FrmEnableRole', N'4', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_5', N'不启用', N'FrmEnableRole', N'5', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_6', N'按设置的岗位', N'FrmEnableRole', N'6', N'CH', N'', N'', N'', NULL), (N'FrmEnableRole_CH_7', N'按设置的部门', N'FrmEnableRole', N'7', N'CH', N'', N'', N'', NULL), (N'FrmSln_CH_0', N'默认方案', N'FrmSln', N'0', N'CH', N'', N'', N'', NULL), (N'FrmSln_CH_1', N'只读方案', N'FrmSln', N'1', N'CH', N'', N'', N'', NULL), (N'FrmSln_CH_2', N'自定义方案', N'FrmSln', N'2', N'CH', N'', N'', N'', NULL), (N'FrmTrackSta_CH_0', N'禁用', N'FrmTrackSta', N'0', N'CH', N'', N'', N'', NULL), (N'FrmTrackSta_CH_1', N'显示轨迹图', N'FrmTrackSta', N'1', N'CH', N'', N'', N'', NULL), (N'FrmTrackSta_CH_2', N'显示轨迹表', N'FrmTrackSta', N'2', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_0', N'经典表单', N'FrmType', N'0', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_1', N'自由表单', N'FrmType', N'1', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_10', N'章节表单', N'FrmType', N'10', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_11', N'累加表单', N'FrmType', N'11', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_3', N'嵌入式表单', N'FrmType', N'3', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_4', N'Word表单', N'FrmType', N'4', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_5', N'在线编辑模式Excel表单', N'FrmType', N'5', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_6', N'VSTO模式Excel表单', N'FrmType', N'6', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_7', N'实体类组件', N'FrmType', N'7', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_8', N'开发者表单', N'FrmType', N'8', N'CH', N'', N'', N'', NULL), (N'FrmType_CH_9', N'Wps表单', N'FrmType', N'9', N'CH', N'', N'', N'', NULL), (N'FrmUrlShowWay_CH_0', N'不显示', N'FrmUrlShowWay', N'0', N'CH', N'', N'', N'', NULL), (N'FrmUrlShowWay_CH_1', N'自动大小', N'FrmUrlShowWay', N'1', N'CH', N'', N'', N'', NULL), (N'FrmUrlShowWay_CH_2', N'指定大小', N'FrmUrlShowWay', N'2', N'CH', N'', N'', N'', NULL), (N'FrmUrlShowWay_CH_3', N'新窗口', N'FrmUrlShowWay', N'3', N'CH', N'', N'', N'', NULL), (N'FTCSta_CH_0', N'禁用', N'FTCSta', N'0', N'CH', N'', N'', N'', NULL), (N'FTCSta_CH_1', N'只读', N'FTCSta', N'1', N'CH', N'', N'', N'', NULL), (N'FTCSta_CH_2', N'可设置人员', N'FTCSta', N'2', N'CH', N'', N'', N'', NULL), (N'FTCWorkModel_CH_0', N'简洁模式', N'FTCWorkModel', N'0', N'CH', N'', N'', N'', NULL), (N'FTCWorkModel_CH_1', N'高级模式', N'FTCWorkModel', N'1', N'CH', N'', N'', N'', NULL), (N'FuncSrc_CH_0', N'自定义', N'FuncSrc', N'0', N'CH', N'', N'', N'', NULL), (N'FuncSrc_CH_1', N'系统内置', N'FuncSrc', N'1', N'CH', N'', N'', N'', NULL), (N'FWCAth_CH_0', N'不启用', N'FWCAth', N'0', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'FWCAth_CH_1', N'多附件', N'FWCAth', N'1', N'CH', N'', N'', N'', NULL), (N'FWCAth_CH_2', N'单附件(暂不支持)', N'FWCAth', N'2', N'CH', N'', N'', N'', NULL), (N'FWCAth_CH_3', N'图片附件(暂不支持)', N'FWCAth', N'3', N'CH', N'', N'', N'', NULL), (N'FWCIsShowReturnMsg_CH_0', N'不显示', N'FWCIsShowReturnMsg', N'0', N'CH', N'', N'', N'', NULL), (N'FWCIsShowReturnMsg_CH_1', N'退回到的节点显示', N'FWCIsShowReturnMsg', N'1', N'CH', N'', N'', N'', NULL), (N'FWCIsShowReturnMsg_CH_2', N'显示全部退回信息', N'FWCIsShowReturnMsg', N'2', N'CH', N'', N'', N'', NULL), (N'FWCMsgShow_CH_0', N'都显示', N'FWCMsgShow', N'0', N'CH', N'', N'', N'', NULL), (N'FWCMsgShow_CH_1', N'仅显示自己的意见', N'FWCMsgShow', N'1', N'CH', N'', N'', N'', NULL), (N'FWCOrderModel_CH_0', N'按审批时间先后排序', N'FWCOrderModel', N'0', N'CH', N'', N'', N'', NULL), (N'FWCOrderModel_CH_1', N'按照接受人员列表先后顺序(官职大小)', N'FWCOrderModel', N'1', N'CH', N'', N'', N'', NULL), (N'FWCShowModel_CH_0', N'表格方式', N'FWCShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'FWCShowModel_CH_1', N'自由模式', N'FWCShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'FWCSta_CH_0', N'禁用', N'FWCSta', N'0', N'CH', N'', N'', N'', NULL), (N'FWCSta_CH_1', N'启用', N'FWCSta', N'1', N'CH', N'', N'', N'', NULL), (N'FWCSta_CH_2', N'只读', N'FWCSta', N'2', N'CH', N'', N'', N'', NULL), (N'FWCTimeModel_CH_0', N'倒序', N'FWCTimeModel', N'0', N'CH', N'', N'', N'', N'#000'), (N'FWCTimeModel_CH_1', N'正序', N'FWCTimeModel', N'1', N'CH', N'', N'', N'', N'#000'), (N'FWCType_CH_0', N'审核组件', N'FWCType', N'0', N'CH', N'', N'', N'', NULL), (N'FWCType_CH_1', N'日志组件', N'FWCType', N'1', N'CH', N'', N'', N'', NULL), (N'FWCType_CH_2', N'周报组件', N'FWCType', N'2', N'CH', N'', N'', N'', NULL), (N'FWCType_CH_3', N'月报组件', N'FWCType', N'3', N'CH', N'', N'', N'', NULL), (N'FWCVer_CH_0', N'1个节点1个人保留1个意见', N'FWCVer', N'0', N'CH', N'', N'', N'', NULL), (N'FWCVer_CH_1', N'保留节点历史意见(默认)', N'FWCVer', N'1', N'CH', N'', N'', N'', NULL), (N'GuestFlowRole_CH_0', N'不参与', N'GuestFlowRole', N'0', N'CH', N'', N'', N'', NULL), (N'GuestFlowRole_CH_1', N'开始节点参与', N'GuestFlowRole', N'1', N'CH', N'', N'', N'', NULL), (N'GuestFlowRole_CH_2', N'中间节点参与', N'GuestFlowRole', N'2', N'CH', N'', N'', N'', NULL), (N'HelpRole_CH_0', N'禁用', N'HelpRole', N'0', N'CH', N'', N'', N'', NULL), (N'HelpRole_CH_1', N'启用', N'HelpRole', N'1', N'CH', N'', N'', N'', NULL), (N'HelpRole_CH_2', N'强制提示', N'HelpRole', N'2', N'CH', N'', N'', N'', NULL), (N'HelpRole_CH_3', N'选择性提示', N'HelpRole', N'3', N'CH', N'', N'', N'', NULL), (N'HuiQianLeaderRole_CH_0', N'只有一个组长', N'HuiQianLeaderRole', N'0', N'CH', N'', N'', N'', NULL), (N'HuiQianLeaderRole_CH_1', N'最后一个组长发送', N'HuiQianLeaderRole', N'1', N'CH', N'', N'', N'', NULL), (N'HuiQianLeaderRole_CH_2', N'任意组长可以发送', N'HuiQianLeaderRole', N'2', N'CH', N'', N'', N'', NULL), (N'HuiQianRole_CH_0', N'不启用', N'HuiQianRole', N'0', N'CH', N'', N'', N'', NULL), (N'HuiQianRole_CH_1', N'协作(同事)模式', N'HuiQianRole', N'1', N'CH', N'', N'', N'', NULL), (N'HuiQianRole_CH_4', N'组长(领导)模式', N'HuiQianRole', N'4', N'CH', N'', N'', N'', NULL), (N'IMEnable_CH_0', N'禁用', N'IMEnable', N'0', N'CH', N'', N'', N'', NULL), (N'IMEnable_CH_1', N'启用', N'IMEnable', N'1', N'CH', N'', N'', N'', NULL), (N'ImgSrcType_CH_0', N'本地', N'ImgSrcType', N'0', N'CH', N'', N'', N'', NULL), (N'ImgSrcType_CH_1', N'URL', N'ImgSrcType', N'1', N'CH', N'', N'', N'', NULL), (N'ImpModel_CH_0', N'不导入', N'ImpModel', N'0', N'CH', N'', N'', N'', NULL), (N'ImpModel_CH_1', N'按配置模式导入', N'ImpModel', N'1', N'CH', N'', N'', N'', NULL), (N'ImpModel_CH_2', N'按照xls文件模版导入', N'ImpModel', N'2', N'CH', N'', N'', N'', NULL), (N'InfoPRI_CH_0', N'普通', N'InfoPRI', N'0', N'CH', N'', N'', N'', NULL), (N'InfoPRI_CH_1', N'紧急', N'InfoPRI', N'1', N'CH', N'', N'', N'', NULL), (N'InfoPRI_CH_2', N'火急', N'InfoPRI', N'2', N'CH', N'', N'', N'', NULL), (N'InfoSta_CH_0', N'发布中', N'InfoSta', N'0', N'CH', N'', N'', N'', NULL), (N'InfoSta_CH_1', N'禁用', N'InfoSta', N'1', N'CH', N'', N'', N'', NULL), (N'InvokeTime_CH_0', N'发送时', N'InvokeTime', N'0', N'CH', N'', N'', N'', NULL), (N'InvokeTime_CH_1', N'工作到达时', N'InvokeTime', N'1', N'CH', N'', N'', N'', NULL), (N'IsAutoSendSLSubFlowOver_CH_0', N'不处理', N'IsAutoSendSLSubFlowOver', N'0', N'CH', N'', N'', N'', NULL), (N'IsAutoSendSLSubFlowOver_CH_1', N'让同级子流程自动运行下一步', N'IsAutoSendSLSubFlowOver', N'1', N'CH', N'', N'', N'', NULL), (N'IsAutoSendSLSubFlowOver_CH_2', N'结束同级子流程', N'IsAutoSendSLSubFlowOver', N'2', N'CH', N'', N'', N'', NULL), (N'IsBackTracking_CH_0', N'不允许原路返回', N'IsBackTracking', N'0', N'CH', N'', N'', N'', NULL), (N'IsBackTracking_CH_1', N'由退回人决定', N'IsBackTracking', N'1', N'CH', N'', N'', N'', NULL), (N'IsBackTracking_CH_2', N'强制原路返回', N'IsBackTracking', N'2', N'CH', N'', N'', N'', NULL), (N'IsCanStart_CH_0', N'不启用', N'IsCanStart', N'0', N'CH', N'', N'', N'', NULL), (N'IsCanStart_CH_1', N'独立启动', N'IsCanStart', N'1', N'CH', N'', N'', N'', NULL), (N'IsEnableRefFunc_CH_0', N'不显示', N'IsEnableRefFunc', N'0', N'CH', N'', N'', N'', NULL), (N'IsEnableRefFunc_CH_1', N'显示右侧', N'IsEnableRefFunc', N'1', N'CH', N'', N'', N'', NULL), (N'ISHC_CH_0', N'未核查123', N'ISHC', N'0', N'CH', N'', N'', N'', NULL), (N'ISHC_CH_1', N'已核查', N'ISHC', N'1', N'CH', N'', N'', N'', NULL), (N'IsKillEtcThread_CH_0', N'不删除其它的子线程', N'IsKillEtcThread', N'0', N'CH', N'', N'', N'', NULL), (N'IsKillEtcThread_CH_1', N'删除其它的子线程', N'IsKillEtcThread', N'1', N'CH', N'', N'', N'', NULL), (N'IsKillEtcThread_CH_2', N'由子线程退回人决定是否删除', N'IsKillEtcThread', N'2', N'CH', N'', N'', N'', NULL), (N'IsSigan_CH_0', N'无', N'IsSigan', N'0', N'CH', N'', N'', N'', NULL), (N'IsSigan_CH_1', N'图片签名', N'IsSigan', N'1', N'CH', N'', N'', N'', NULL), (N'IsSigan_CH_2', N'山东CA', N'IsSigan', N'2', N'CH', N'', N'', N'', NULL), (N'IsSigan_CH_3', N'广东CA', N'IsSigan', N'3', N'CH', N'', N'', N'', NULL), (N'IsSigan_CH_4', N'图片盖章', N'IsSigan', N'4', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_0', N'yyyy-MM-dd', N'IsSupperText', N'0', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_1', N'yyyy-MM-ddHH:mm', N'IsSupperText', N'1', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_2', N'yyyy-MM-ddHH:mm:ss', N'IsSupperText', N'2', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_3', N'yyyy-MM', N'IsSupperText', N'3', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_4', N'HH:mm', N'IsSupperText', N'4', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_5', N'HH:mm:ss', N'IsSupperText', N'5', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_6', N'MM-dd', N'IsSupperText', N'6', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_7', N'yyyy', N'IsSupperText', N'7', N'CH', N'', N'', N'', NULL), (N'IsSupperText_CH_8', N'MM', N'IsSupperText', N'8', N'CH', N'', N'', N'', NULL), (N'JMCD_CH_0', N'一般', N'JMCD', N'0', N'CH', N'', N'', N'', NULL), (N'JMCD_CH_1', N'保密', N'JMCD', N'1', N'CH', N'', N'', N'', NULL), (N'JMCD_CH_2', N'秘密', N'JMCD', N'2', N'CH', N'', N'', N'', NULL), (N'JMCD_CH_3', N'机密', N'JMCD', N'3', N'CH', N'', N'', N'', NULL), (N'JSFX_CH_0', N'正向计算', N'JSFX', N'0', N'CH', N'', N'', N'', N'#000'), (N'JSFX_CH_1', N'反向计算', N'JSFX', N'1', N'CH', N'', N'', N'', N'#000'), (N'JumpWay_CH_0', N'不能跳转', N'JumpWay', N'0', N'CH', N'', N'', N'', NULL), (N'JumpWay_CH_1', N'只能向后跳转', N'JumpWay', N'1', N'CH', N'', N'', N'', NULL), (N'JumpWay_CH_2', N'只能向前跳转', N'JumpWay', N'2', N'CH', N'', N'', N'', NULL), (N'JumpWay_CH_3', N'任意节点跳转', N'JumpWay', N'3', N'CH', N'', N'', N'', NULL), (N'JumpWay_CH_4', N'按指定规则跳转', N'JumpWay', N'4', N'CH', N'', N'', N'', NULL), (N'KnowledgeSta_CH_0', N'公开', N'KnowledgeSta', N'0', N'CH', N'', N'', N'', NULL), (N'KnowledgeSta_CH_1', N'私有', N'KnowledgeSta', N'1', N'CH', N'', N'', N'', NULL), (N'LGType_CH_0', N'普通', N'LGType', N'0', N'CH', N'', N'', N'', NULL), (N'LGType_CH_1', N'枚举', N'LGType', N'1', N'CH', N'', N'', N'', NULL), (N'LGType_CH_2', N'外键', N'LGType', N'2', N'CH', N'', N'', N'', NULL), (N'LGType_CH_3', N'打开系统页面', N'LGType', N'3', N'CH', N'', N'', N'', NULL), (N'ListModel_CH_0', N'编辑模式', N'ListModel', N'0', N'CH', N'', N'', N'', NULL), (N'ListModel_CH_1', N'视图模式', N'ListModel', N'1', N'CH', N'', N'', N'', NULL), (N'ListShowModel_CH_0', N'表格', N'ListShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'ListShowModel_CH_1', N'卡片', N'ListShowModel', N'1', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'ListShowModel_CH_2', N'自定义Url', N'ListShowModel', N'2', N'CH', N'', N'', N'', NULL), (N'LoginStyle_CH_0', N'默认', N'LoginStyle', N'0', N'CH', N'', N'', N'', NULL), (N'LoginStyle_CH_1', N'居中(上下结构)', N'LoginStyle', N'1', N'CH', N'', N'', N'', NULL), (N'LoginStyle_CH_2', N'居左(上下结构)', N'LoginStyle', N'2', N'CH', N'', N'', N'', NULL), (N'MethodDocTypeOfFunc_CH_0', N'SQL', N'MethodDocTypeOfFunc', N'0', N'CH', N'', N'', N'', NULL), (N'MethodDocTypeOfFunc_CH_1', N'URL', N'MethodDocTypeOfFunc', N'1', N'CH', N'', N'', N'', NULL), (N'MethodDocTypeOfFunc_CH_2', N'JavaScript', N'MethodDocTypeOfFunc', N'2', N'CH', N'', N'', N'', NULL), (N'MethodDocTypeOfFunc_CH_3', N'业务单元', N'MethodDocTypeOfFunc', N'3', N'CH', N'', N'', N'', NULL), (N'MobileColorType_CH_0', N'蓝色', N'MobileColorType', N'0', N'CH', N'', N'', N'', NULL), (N'MobileColorType_CH_1', N'橙色', N'MobileColorType', N'1', N'CH', N'', N'', N'', NULL), (N'MobileColorType_CH_2', N'绿色', N'MobileColorType', N'2', N'CH', N'', N'', N'', NULL), (N'MobileFieldShowModel_CH_0', N'默认设置', N'MobileFieldShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'MobileFieldShowModel_CH_1', N'设置显示字段', N'MobileFieldShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'MobileFieldShowModel_CH_2', N'设置模板', N'MobileFieldShowModel', N'2', N'CH', N'', N'', N'', NULL), (N'MobileShowModel_CH_0', N'新页面显示模式', N'MobileShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'MobileShowModel_CH_1', N'列表模式', N'MobileShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'MobileShowModel_CH_2', N'主页面平铺模式', N'MobileShowModel', N'2', N'CH', N'', N'', N'', NULL), (N'Model_CH_0', N'普通', N'Model', N'0', N'CH', N'', N'', N'', NULL), (N'Model_CH_1', N'固定行', N'Model', N'1', N'CH', N'', N'', N'', NULL), (N'MoreLinkModel_CH_0', N'新窗口', N'MoreLinkModel', N'0', N'CH', N'', N'', N'', NULL), (N'MoreLinkModel_CH_1', N'本窗口', N'MoreLinkModel', N'1', N'CH', N'', N'', N'', NULL), (N'MoreLinkModel_CH_2', N'覆盖新窗口', N'MoreLinkModel', N'2', N'CH', N'', N'', N'', NULL), (N'MoveToShowWay_CH_0', N'不显示', N'MoveToShowWay', N'0', N'CH', N'', N'', N'', NULL), (N'MoveToShowWay_CH_1', N'下拉列表0', N'MoveToShowWay', N'1', N'CH', N'', N'', N'', NULL), (N'MoveToShowWay_CH_2', N'平铺', N'MoveToShowWay', N'2', N'CH', N'', N'', N'', NULL), (N'MsgCtrl_CH_0', N'不发送', N'MsgCtrl', N'0', N'CH', N'', N'', N'', NULL), (N'MsgCtrl_CH_1', N'按设置的下一步接受人自动发送（默认）', N'MsgCtrl', N'1', N'CH', N'', N'', N'', NULL), (N'MsgCtrl_CH_2', N'由本节点表单系统字段(IsSendEmail,IsSendSMS)来决定', N'MsgCtrl', N'2', N'CH', N'', N'', N'', NULL), (N'MsgCtrl_CH_3', N'由SDK开发者参数(IsSendEmail,IsSendSMS)来决定', N'MsgCtrl', N'3', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_1', N'字符串String', N'MyDataType', N'1', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_2', N'整数类型Int', N'MyDataType', N'2', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_3', N'浮点类型AppFloat', N'MyDataType', N'3', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_4', N'判断类型Boolean', N'MyDataType', N'4', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_5', N'双精度类型Double', N'MyDataType', N'5', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_6', N'日期型Date', N'MyDataType', N'6', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_7', N'时间类型Datetime', N'MyDataType', N'7', N'CH', N'', N'', N'', NULL), (N'MyDataType_CH_8', N'金额类型AppMoney', N'MyDataType', N'8', N'CH', N'', N'', N'', NULL), (N'MyDeptRole_CH_0', N'仅部门领导可以查看', N'MyDeptRole', N'0', N'CH', N'', N'', N'', NULL), (N'MyDeptRole_CH_1', N'部门下所有的人都可以查看', N'MyDeptRole', N'1', N'CH', N'', N'', N'', NULL), (N'MyDeptRole_CH_2', N'本部门里指定角色的人可以查看', N'MyDeptRole', N'2', N'CH', N'', N'', N'', NULL), (N'NextRole_CH_0', N'禁用', N'NextRole', N'0', N'CH', N'', N'', N'', NULL), (N'NextRole_CH_1', N'相同节点', N'NextRole', N'1', N'CH', N'', N'', N'', NULL), (N'NextRole_CH_2', N'相同流程', N'NextRole', N'2', N'CH', N'', N'', N'', NULL), (N'NextRole_CH_3', N'相同的人', N'NextRole', N'3', N'CH', N'', N'', N'', NULL), (N'NextRole_CH_4', N'不限流程', N'NextRole', N'4', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_0', N'经典表单(ccflow6取消支持)', N'NodeFormType', N'0', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_1', N'自由表单', N'NodeFormType', N'1', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_100', N'禁用(对多表单流程有效)', N'NodeFormType', N'100', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_2', N'嵌入式表单', N'NodeFormType', N'2', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_3', N'SDK表单', N'NodeFormType', N'3', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_4', N'SL表单(ccflow6取消支持)', N'NodeFormType', N'4', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_5', N'表单树', N'NodeFormType', N'5', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_6', N'动态表单树', N'NodeFormType', N'6', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_7', N'公文表单(WebOffice)', N'NodeFormType', N'7', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_8', N'Excel表单(测试中)', N'NodeFormType', N'8', N'CH', N'', N'', N'', NULL), (N'NodeFormType_CH_9', N'Word表单(测试中)', N'NodeFormType', N'9', N'CH', N'', N'', N'', NULL), (N'NodeType_CH_0', N'用户节点', N'NodeType', N'0', N'CH', N'', N'', N'', NULL), (N'NodeType_CH_1', N'路由节点', N'NodeType', N'1', N'CH', N'', N'', N'', NULL), (N'NoGenerModel_CH_0', N'自定义', N'NoGenerModel', N'0', N'CH', N'', N'', N'', NULL), (N'NoGenerModel_CH_1', N'流水号', N'NoGenerModel', N'1', N'CH', N'', N'', N'', NULL), (N'NoGenerModel_CH_2', N'标签的全拼', N'NoGenerModel', N'2', N'CH', N'', N'', N'', NULL), (N'NoGenerModel_CH_3', N'标签的简拼', N'NoGenerModel', N'3', N'CH', N'', N'', N'', NULL), (N'NoGenerModel_CH_4', N'按GUID生成', N'NoGenerModel', N'4', N'CH', N'', N'', N'', NULL), (N'NoteEnable_CH_0', N'禁用', N'NoteEnable', N'0', N'CH', N'', N'', N'', NULL), (N'NoteEnable_CH_1', N'启用', N'NoteEnable', N'1', N'CH', N'', N'', N'', NULL), (N'NoteEnable_CH_2', N'只读', N'NoteEnable', N'2', N'CH', N'', N'', N'', NULL), (N'OfficeBtnEnable_CH_0', N'不可用', N'OfficeBtnEnable', N'0', N'CH', N'', N'', N'', NULL), (N'OfficeBtnEnable_CH_1', N'可编辑', N'OfficeBtnEnable', N'1', N'CH', N'', N'', N'', NULL), (N'OfficeBtnEnable_CH_2', N'不可编辑', N'OfficeBtnEnable', N'2', N'CH', N'', N'', N'', NULL), (N'OfficeBtnLocal_CH_0', N'工具栏上', N'OfficeBtnLocal', N'0', N'CH', N'', N'', N'', NULL), (N'OfficeBtnLocal_CH_1', N'表单标签(divID=GovDocFile)', N'OfficeBtnLocal', N'1', N'CH', N'', N'', N'', NULL), (N'OfficeFileType_CH_0', N'word文件', N'OfficeFileType', N'0', N'CH', N'', N'', N'', NULL), (N'OfficeFileType_CH_1', N'WPS文件', N'OfficeFileType', N'1', N'CH', N'', N'', N'', NULL), (N'OpenModel_CH_0', N'弹窗-强制关闭', N'OpenModel', N'0', N'CH', N'', N'', N'', NULL), (N'OpenModel_CH_1', N'新窗口打开-winopen模式', N'OpenModel', N'1', N'CH', N'', N'', N'', NULL), (N'OpenModel_CH_2', N'弹窗-非强制关闭', N'OpenModel', N'2', N'CH', N'', N'', N'', NULL), (N'OpenModel_CH_3', N'执行指定的方法.', N'OpenModel', N'3', N'CH', N'', N'', N'', NULL), (N'OpenModel_CH_4', N'流程设计器打开模式', N'OpenModel', N'4', N'CH', N'', N'', N'', NULL), (N'OpenWay_CH_0', N'新窗口', N'OpenWay', N'0', N'CH', N'', N'', N'', NULL), (N'OpenWay_CH_1', N'本窗口', N'OpenWay', N'1', N'CH', N'', N'', N'', NULL), (N'OpenWay_CH_2', N'覆盖新窗口', N'OpenWay', N'2', N'CH', N'', N'', N'', NULL), (N'PanelIconSize_CH_0', N'小', N'PanelIconSize', N'0', N'CH', N'', N'', N'', NULL), (N'PanelIconSize_CH_1', N'中', N'PanelIconSize', N'1', N'CH', N'', N'', N'', NULL), (N'PanelIconSize_CH_2', N'大', N'PanelIconSize', N'2', N'CH', N'', N'', N'', NULL), (N'ParentFlowSendNextStepRole_CH_0', N'不处理', N'ParentFlowSendNextStepRole', N'0', N'CH', N'', N'', N'', NULL), (N'ParentFlowSendNextStepRole_CH_1', N'该子流程运行结束', N'ParentFlowSendNextStepRole', N'1', N'CH', N'', N'', N'', NULL), (N'ParentFlowSendNextStepRole_CH_2', N'该子流程运行到指定节点', N'ParentFlowSendNextStepRole', N'2', N'CH', N'', N'', N'', NULL), (N'PicUploadType_CH_0', N'拍照上传或者相册上传', N'PicUploadType', N'0', N'CH', N'', N'', N'', NULL), (N'PicUploadType_CH_1', N'只能拍照上传', N'PicUploadType', N'1', N'CH', N'', N'', N'', NULL), (N'PopValFormat_CH_0', N'No(仅编号)', N'PopValFormat', N'0', N'CH', N'', N'', N'', NULL), (N'PopValFormat_CH_1', N'Name(仅名称)', N'PopValFormat', N'1', N'CH', N'', N'', N'', NULL), (N'PopValFormat_CH_2', N'No,Name(编号与名称,比如zhangsan,张三;lisi,李四;)', N'PopValFormat', N'2', N'CH', N'', N'', N'', NULL), (N'PosRefFuncMobile_CH_0', N'不显示', N'PosRefFuncMobile', N'0', N'CH', N'', N'', N'', NULL), (N'PosRefFuncMobile_CH_1', N'显示底部', N'PosRefFuncMobile', N'1', N'CH', N'', N'', N'', NULL), (N'PosRefFuncMobile_CH_2', N'显示左', N'PosRefFuncMobile', N'2', N'CH', N'', N'', N'', NULL), (N'PowerCtrlType_CH_0', N'角色', N'PowerCtrlType', N'0', N'CH', N'', N'', N'', NULL), (N'PowerCtrlType_CH_1', N'人员', N'PowerCtrlType', N'1', N'CH', N'', N'', N'', NULL), (N'PreplaceWokerRole_CH_0', N'不启用', N'PreplaceWokerRole', N'0', N'CH', N'', N'', N'', NULL), (N'PreplaceWokerRole_CH_1', N'单独启用', N'PreplaceWokerRole', N'1', N'CH', N'', N'', N'', NULL), (N'PreplaceWokerRole_CH_2', N'发送前打开', N'PreplaceWokerRole', N'2', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'PreplaceWokerRole_CH_3', N'发送于单独启用', N'PreplaceWokerRole', N'3', N'CH', N'', N'', N'', NULL), (N'PRI_CH_0', N'低', N'PRI', N'0', N'CH', N'', N'', N'', NULL), (N'PRI_CH_1', N'中', N'PRI', N'1', N'CH', N'', N'', N'', NULL), (N'PRI_CH_2', N'高', N'PRI', N'2', N'CH', N'', N'', N'', NULL), (N'PRIEnable_CH_0', N'不启用', N'PRIEnable', N'0', N'CH', N'', N'', N'', NULL), (N'PRIEnable_CH_1', N'只读', N'PRIEnable', N'1', N'CH', N'', N'', N'', NULL), (N'PRIEnable_CH_2', N'编辑', N'PRIEnable', N'2', N'CH', N'', N'', N'', NULL), (N'PrintFileType_CH_0', N'Word', N'PrintFileType', N'0', N'CH', N'', N'', N'', NULL), (N'PrintFileType_CH_1', N'PDF', N'PrintFileType', N'1', N'CH', N'', N'', N'', NULL), (N'PrintFileType_CH_2', N'Excel', N'PrintFileType', N'2', N'CH', N'', N'', N'', NULL), (N'PrintFileType_CH_3', N'Html', N'PrintFileType', N'3', N'CH', N'', N'', N'', NULL), (N'PrintOpenModel_CH_0', N'下载本地', N'PrintOpenModel', N'0', N'CH', N'', N'', N'', NULL), (N'PrintOpenModel_CH_1', N'在线打开', N'PrintOpenModel', N'1', N'CH', N'', N'', N'', NULL), (N'PrintPDFModle_CH_0', N'全部打印', N'PrintPDFModle', N'0', N'CH', N'', N'', N'', NULL), (N'PrintPDFModle_CH_1', N'单个表单打印(针对树形表单)', N'PrintPDFModle', N'1', N'CH', N'', N'', N'', NULL), (N'QingJiaLeiXing_CH_0_ccs', N'事假', N'QingJiaLeiXing', N'0', N'CH', N'ccs', N'', N'ccs_QingJiaLeiXing', N'#000'), (N'QingJiaLeiXing_CH_1_ccs', N'病假', N'QingJiaLeiXing', N'1', N'CH', N'ccs', N'', N'ccs_QingJiaLeiXing', N'#000'), (N'QingJiaLeiXing_CH_2_ccs', N'其它', N'QingJiaLeiXing', N'2', N'CH', N'ccs', N'', N'ccs_QingJiaLeiXing', N'#000'), (N'QRCodeRole_CH_0', N'无', N'QRCodeRole', N'0', N'CH', N'', N'', N'', NULL), (N'QRCodeRole_CH_1', N'查看流程表单-无需权限', N'QRCodeRole', N'1', N'CH', N'', N'', N'', NULL), (N'QRCodeRole_CH_2', N'查看流程表单-需要登录', N'QRCodeRole', N'2', N'CH', N'', N'', N'', NULL), (N'QRCodeRole_CH_3', N'外部账户协作模式处理工作', N'QRCodeRole', N'3', N'CH', N'', N'', N'', NULL), (N'QRModel_CH_0', N'不生成', N'QRModel', N'0', N'CH', N'', N'', N'', NULL), (N'QRModel_CH_1', N'生成二维码', N'QRModel', N'1', N'CH', N'', N'', N'', NULL), (N'RBShowModel_CH_0', N'竖向', N'RBShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'RBShowModel_CH_3', N'横向', N'RBShowModel', N'3', N'CH', N'', N'', N'', NULL), (N'ReadReceipts_CH_0', N'不回执', N'ReadReceipts', N'0', N'CH', N'', N'', N'', NULL), (N'ReadReceipts_CH_1', N'自动回执', N'ReadReceipts', N'1', N'CH', N'', N'', N'', NULL), (N'ReadReceipts_CH_2', N'由上一节点表单字段决定', N'ReadReceipts', N'2', N'CH', N'', N'', N'', NULL), (N'ReadReceipts_CH_3', N'由SDK开发者参数决定', N'ReadReceipts', N'3', N'CH', N'', N'', N'', NULL), (N'ReadRole_CH_0', N'不控制', N'ReadRole', N'0', N'CH', N'', N'', N'', NULL), (N'ReadRole_CH_1', N'未阅读阻止发送', N'ReadRole', N'1', N'CH', N'', N'', N'', NULL), (N'ReadRole_CH_2', N'未阅读做记录', N'ReadRole', N'2', N'CH', N'', N'', N'', NULL), (N'RefBillRole_CH_0', N'不启用', N'RefBillRole', N'0', N'CH', N'', N'', N'', NULL), (N'RefBillRole_CH_1', N'非必须选择关联单据', N'RefBillRole', N'1', N'CH', N'', N'', N'', NULL), (N'RefBillRole_CH_2', N'必须选择关联单据', N'RefBillRole', N'2', N'CH', N'', N'', N'', NULL), (N'RefMethodType_CH_0', N'功能', N'RefMethodType', N'0', N'CH', N'', N'', N'', NULL), (N'RefMethodType_CH_1', N'模态窗口打开', N'RefMethodType', N'1', N'CH', N'', N'', N'', NULL), (N'RefMethodType_CH_2', N'新窗口打开', N'RefMethodType', N'2', N'CH', N'', N'', N'', NULL), (N'RefMethodType_CH_3', N'右侧窗口打开', N'RefMethodType', N'3', N'CH', N'', N'', N'', NULL), (N'RefMethodType_CH_4', N'转到新页面', N'RefMethodType', N'4', N'CH', N'', N'', N'', NULL), (N'RefMethodTypeLink_CH_0', N'模态窗口打开', N'RefMethodTypeLink', N'0', N'CH', N'', N'', N'', NULL), (N'RefMethodTypeLink_CH_1', N'新窗口打开', N'RefMethodTypeLink', N'1', N'CH', N'', N'', N'', NULL), (N'RefMethodTypeLink_CH_2', N'右侧窗口打开', N'RefMethodTypeLink', N'2', N'CH', N'', N'', N'', NULL), (N'RefMethodTypeLink_CH_4', N'转到新页面', N'RefMethodTypeLink', N'4', N'CH', N'', N'', N'', NULL), (N'RefWorkModel_CH_0', N'禁用', N'RefWorkModel', N'0', N'CH', N'', N'', N'', NULL), (N'RefWorkModel_CH_1', N'静态Html脚本', N'RefWorkModel', N'1', N'CH', N'', N'', N'', NULL), (N'RefWorkModel_CH_2', N'静态框架Url', N'RefWorkModel', N'2', N'CH', N'', N'', N'', NULL), (N'RefWorkModel_CH_3', N'动态Url', N'RefWorkModel', N'3', N'CH', N'', N'', N'', NULL), (N'RefWorkModel_CH_4', N'动态Html脚本', N'RefWorkModel', N'4', N'CH', N'', N'', N'', NULL), (N'Repeat_CH_0', N'永不', N'Repeat', N'0', N'CH', N'', N'', N'', NULL), (N'Repeat_CH_1', N'每年', N'Repeat', N'1', N'CH', N'', N'', N'', NULL), (N'Repeat_CH_2', N'每月', N'Repeat', N'2', N'CH', N'', N'', N'', NULL), (N'ResultNum_CH_0', N'多行', N'ResultNum', N'0', N'CH', N'', N'', N'', NULL), (N'ResultNum_CH_1', N'单行', N'ResultNum', N'1', N'CH', N'', N'', N'', NULL), (N'ReturnOneNodeRole_CH_0', N'不启用', N'ReturnOneNodeRole', N'0', N'CH', N'', N'', N'', NULL), (N'ReturnOneNodeRole_CH_1', N'按照[退回信息填写字段]作为退回意见直接退回', N'ReturnOneNodeRole', N'1', N'CH', N'', N'', N'', NULL), (N'ReturnOneNodeRole_CH_2', N'按照[审核组件]填写的信息作为退回意见直接退回', N'ReturnOneNodeRole', N'2', N'CH', N'', N'', N'', NULL), (N'ReturnRole_CH_0', N'不能退回', N'ReturnRole', N'0', N'CH', N'', N'', N'', NULL), (N'ReturnRole_CH_1', N'只能退回上一个节点', N'ReturnRole', N'1', N'CH', N'', N'', N'', NULL), (N'ReturnRole_CH_2', N'可以退回任意节点', N'ReturnRole', N'2', N'CH', N'', N'', N'', NULL), (N'ReturnRole_CH_3', N'退回指定的节点', N'ReturnRole', N'3', N'CH', N'', N'', N'', NULL), (N'ReturnRole_CH_4', N'只能退回开始节点', N'ReturnRole', N'4', N'CH', N'', N'', N'', NULL), (N'ReturnSendModel_CH_0', N'从退回节点正常执行', N'ReturnSendModel', N'0', N'CH', N'', N'', N'', NULL), (N'ReturnSendModel_CH_1', N'直接发送到当前节点', N'ReturnSendModel', N'1', N'CH', N'', N'', N'', NULL), (N'ReturnSendModel_CH_2', N'直接发送到当前节点的下一个节点', N'ReturnSendModel', N'2', N'CH', N'', N'', N'', NULL), (N'RowOpenMode_CH_0', N'新窗口打开', N'RowOpenMode', N'0', N'CH', N'', N'', N'', NULL), (N'RowOpenMode_CH_1', N'在本窗口打开', N'RowOpenMode', N'1', N'CH', N'', N'', N'', NULL), (N'RowOpenMode_CH_2', N'弹出窗口打开,关闭后不刷新列表', N'RowOpenMode', N'2', N'CH', N'', N'', N'', NULL), (N'RowOpenMode_CH_3', N'弹出窗口打开,关闭后刷新列表', N'RowOpenMode', N'3', N'CH', N'', N'', N'', NULL), (N'RowOpenModel_CH_0', N'新窗口打开', N'RowOpenModel', N'0', N'CH', N'', N'', N'', NULL), (N'RowOpenModel_CH_1', N'弹出窗口打开,关闭后刷新列表', N'RowOpenModel', N'1', N'CH', N'', N'', N'', NULL), (N'RowOpenModel_CH_2', N'弹出窗口打开,关闭后不刷新列表', N'RowOpenModel', N'2', N'CH', N'', N'', N'', NULL), (N'RowSpanAttrString_CH_1', N'跨1个行', N'RowSpanAttrString', N'1', N'CH', N'', N'', N'', NULL), (N'RowSpanAttrString_CH_2', N'跨2行', N'RowSpanAttrString', N'2', N'CH', N'', N'', N'', NULL), (N'RowSpanAttrString_CH_3', N'跨3行', N'RowSpanAttrString', N'3', N'CH', N'', N'', N'', NULL), (N'Rpt3SumModel_CH_0', N'不显示', N'Rpt3SumModel', N'0', N'CH', N'', N'', N'', NULL), (N'Rpt3SumModel_CH_1', N'底部', N'Rpt3SumModel', N'1', N'CH', N'', N'', N'', NULL), (N'Rpt3SumModel_CH_2', N'头部', N'Rpt3SumModel', N'2', N'CH', N'', N'', N'', NULL), (N'RptModel_CH_0', N'左边', N'RptModel', N'0', N'CH', N'', N'', N'', NULL), (N'RptModel_CH_1', N'顶部', N'RptModel', N'1', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_0', N'普通', N'RunModel', N'0', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_1', N'合流', N'RunModel', N'1', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_2', N'分流', N'RunModel', N'2', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_3', N'分合流', N'RunModel', N'3', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_4', N'同表单子线程', N'RunModel', N'4', N'CH', N'', N'', N'', NULL), (N'RunModel_CH_5', N'异表单子线程', N'RunModel', N'5', N'CH', N'', N'', N'', NULL), (N'SaveModel_CH_0', N'仅节点表', N'SaveModel', N'0', N'CH', N'', N'', N'', NULL), (N'SaveModel_CH_1', N'节点表与Rpt表', N'SaveModel', N'1', N'CH', N'', N'', N'', NULL), (N'ScripRole_CH_0', N'禁用', N'ScripRole', N'0', N'CH', N'', N'', N'', NULL), (N'ScripRole_CH_1', N'按钮启用', N'ScripRole', N'1', N'CH', N'', N'', N'', NULL), (N'ScripRole_CH_2', N'发送启用', N'ScripRole', N'2', N'CH', N'', N'', N'', NULL), (N'SearchDictOpenType_CH_0', N'MyDictFrameWork.htm实体与实体相关功能编辑器', N'SearchDictOpenType', N'0', N'CH', N'', N'', N'', NULL), (N'SearchDictOpenType_CH_1', N'MyDict.htm实体编辑器', N'SearchDictOpenType', N'1', N'CH', N'', N'', N'', NULL), (N'SearchDictOpenType_CH_2', N'MyBill.htm单据编辑器', N'SearchDictOpenType', N'2', N'CH', N'', N'', N'', NULL), (N'SearchDictOpenType_CH_9', N'自定义URL', N'SearchDictOpenType', N'9', N'CH', N'', N'', N'', NULL), (N'SearchUrlOpenType_CH_0', N'En.htm实体与实体相关功能编辑器', N'SearchUrlOpenType', N'0', N'CH', N'', N'', N'', NULL), (N'SearchUrlOpenType_CH_1', N'EnOnly.htm实体编辑器', N'SearchUrlOpenType', N'1', N'CH', N'', N'', N'', NULL), (N'SearchUrlOpenType_CH_2', N'/CCForm/FrmGener.htm经典表单解析器', N'SearchUrlOpenType', N'2', N'CH', N'', N'', N'', NULL), (N'SearchUrlOpenType_CH_3', N'/CCForm/FrmGener.htm自由表单解析器', N'SearchUrlOpenType', N'3', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'SearchUrlOpenType_CH_9', N'自定义URL', N'SearchUrlOpenType', N'9', N'CH', N'', N'', N'', NULL), (N'SelectAccepterEnable_CH_0', N'不启用', N'SelectAccepterEnable', N'0', N'CH', N'', N'', N'', NULL), (N'SelectAccepterEnable_CH_1', N'单独启用', N'SelectAccepterEnable', N'1', N'CH', N'', N'', N'', NULL), (N'SelectAccepterEnable_CH_2', N'在发送前打开', N'SelectAccepterEnable', N'2', N'CH', N'', N'', N'', NULL), (N'SelectAccepterEnable_CH_3', N'转入新页面', N'SelectAccepterEnable', N'3', N'CH', N'', N'', N'', NULL), (N'SendModel_CH_0', N'给当前人员设置开始节点待办', N'SendModel', N'0', N'CH', N'', N'', N'', NULL), (N'SendModel_CH_1', N'发送到下一个节点', N'SendModel', N'1', N'CH', N'', N'', N'', NULL), (N'SFOpenType_CH_0', N'工作查看器', N'SFOpenType', N'0', N'CH', N'', N'', N'', NULL), (N'SFOpenType_CH_1', N'流程轨迹', N'SFOpenType', N'1', N'CH', N'', N'', N'', NULL), (N'SFShowCtrl_CH_0', N'可以看所有的子流程', N'SFShowCtrl', N'0', N'CH', N'', N'', N'', NULL), (N'SFShowCtrl_CH_1', N'仅仅可以看自己发起的子流程', N'SFShowCtrl', N'1', N'CH', N'', N'', N'', NULL), (N'SFShowModel_CH_0', N'表格方式', N'SFShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'SFShowModel_CH_1', N'自由模式', N'SFShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'SFSta_CH_0', N'禁用', N'SFSta', N'0', N'CH', N'', N'', N'', NULL), (N'SFSta_CH_1', N'启用', N'SFSta', N'1', N'CH', N'', N'', N'', NULL), (N'SFSta_CH_2', N'只读', N'SFSta', N'2', N'CH', N'', N'', N'', NULL), (N'SharingType_CH_0', N'共享', N'SharingType', N'0', N'CH', N'', N'', N'', NULL), (N'SharingType_CH_1', N'私有', N'SharingType', N'1', N'CH', N'', N'', N'', NULL), (N'ShowModel_CH_0', N'按钮', N'ShowModel', N'0', N'CH', N'', N'', N'', NULL), (N'ShowModel_CH_1', N'超链接', N'ShowModel', N'1', N'CH', N'', N'', N'', NULL), (N'ShowType_CH_0', N'显示', N'ShowType', N'0', N'CH', N'', N'', N'', NULL), (N'ShowType_CH_1', N'PC折叠', N'ShowType', N'1', N'CH', N'', N'', N'', NULL), (N'ShowType_CH_2', N'隐藏', N'ShowType', N'2', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_0', N'不签名', N'SigantureEnabel', N'0', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_1', N'图片签名', N'SigantureEnabel', N'1', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_2', N'写字板', N'SigantureEnabel', N'2', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_3', N'电子签名', N'SigantureEnabel', N'3', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_4', N'电子盖章', N'SigantureEnabel', N'4', N'CH', N'', N'', N'', NULL), (N'SigantureEnabel_CH_5', N'电子签名+盖章', N'SigantureEnabel', N'5', N'CH', N'', N'', N'', NULL), (N'SkipTime_CH_0', N'上一个节点发送时', N'SkipTime', N'0', N'CH', N'', N'', N'', NULL), (N'SkipTime_CH_1', N'当前节点工作打开时', N'SkipTime', N'1', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_0', N'方向条件', N'SQLType', N'0', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_1', N'接受人规则', N'SQLType', N'1', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_2', N'下拉框数据过滤', N'SQLType', N'2', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_3', N'级联下拉框', N'SQLType', N'3', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_4', N'PopVal开窗返回值', N'SQLType', N'4', N'CH', N'', N'', N'', NULL), (N'SQLType_CH_5', N'人员选择器人员选择范围', N'SQLType', N'5', N'CH', N'', N'', N'', NULL), (N'SubFlowModel_CH_0', N'下级子流程', N'SubFlowModel', N'0', N'CH', N'', N'', N'', NULL), (N'SubFlowModel_CH_1', N'同级子流程', N'SubFlowModel', N'1', N'CH', N'', N'', N'', NULL), (N'SubFlowShowType_CH_0', N'平铺模式显示', N'SubFlowShowType', N'0', N'CH', N'', N'', N'', NULL), (N'SubFlowShowType_CH_1', N'合并模式显示', N'SubFlowShowType', N'1', N'CH', N'', N'', N'', NULL), (N'SubFlowSta_CH_0', N'禁用', N'SubFlowSta', N'0', N'CH', N'', N'', N'', NULL), (N'SubFlowSta_CH_1', N'启用', N'SubFlowSta', N'1', N'CH', N'', N'', N'', NULL), (N'SubFlowSta_CH_2', N'只读', N'SubFlowSta', N'2', N'CH', N'', N'', N'', NULL), (N'SubFlowType_CH_0', N'手动启动子流程', N'SubFlowType', N'0', N'CH', N'', N'', N'', NULL), (N'SubFlowType_CH_1', N'触发启动子流程', N'SubFlowType', N'1', N'CH', N'', N'', N'', NULL), (N'SubFlowType_CH_2', N'延续子流程', N'SubFlowType', N'2', N'CH', N'', N'', N'', NULL), (N'SubmitSFEnable_CH_0', N'禁用', N'SubmitSFEnable', N'0', N'CH', N'', N'', N'', NULL), (N'SubmitSFEnable_CH_1', N'部门身份', N'SubmitSFEnable', N'1', N'CH', N'', N'', N'', NULL), (N'SubmitSFEnable_CH_2', N'部门与角色身份', N'SubmitSFEnable', N'2', N'CH', N'', N'', N'', NULL), (N'TabType_CH_0', N'本地表或视图', N'TabType', N'0', N'CH', N'', N'', N'', NULL), (N'TabType_CH_1', N'通过一个SQL确定的一个外部数据源', N'TabType', N'1', N'CH', N'', N'', N'', NULL), (N'TabType_CH_2', N'通过WebServices获得的一个数据源', N'TabType', N'2', N'CH', N'', N'', N'', NULL), (N'Target_CH_0', N'新窗口', N'Target', N'0', N'CH', N'', N'', N'', NULL), (N'Target_CH_1', N'本窗口', N'Target', N'1', N'CH', N'', N'', N'', NULL), (N'Target_CH_2', N'父窗口', N'Target', N'2', N'CH', N'', N'', N'', NULL), (N'TaskPRI_CH_0', N'高', N'TaskPRI', N'0', N'CH', N'', N'', N'', NULL), (N'TaskPRI_CH_1', N'中', N'TaskPRI', N'1', N'CH', N'', N'', N'', NULL), (N'TaskPRI_CH_2', N'低', N'TaskPRI', N'2', N'CH', N'', N'', N'', NULL), (N'TaskSta_CH_0', N'未完成', N'TaskSta', N'0', N'CH', N'', N'', N'', NULL), (N'TaskSta_CH_1', N'已完成', N'TaskSta', N'1', N'CH', N'', N'', N'', NULL), (N'TBModel_CH_0', N'单行文本', N'TBModel', N'0', N'CH', N'', N'', N'', NULL), (N'TBModel_CH_1', N'多行文本', N'TBModel', N'1', N'CH', N'', N'', N'', NULL), (N'TBModel_CH_2', N'富文本', N'TBModel', N'2', N'CH', N'', N'', N'', NULL), (N'TBModel_CH_3', N'超大文本', N'TBModel', N'3', N'CH', N'', N'', N'', NULL), (N'TCEnable_CH_0', N'禁用', N'TCEnable', N'0', N'CH', N'', N'', N'', NULL), (N'TCEnable_CH_1', N'只读', N'TCEnable', N'1', N'CH', N'', N'', N'', NULL), (N'TCEnable_CH_2', N'可定义', N'TCEnable', N'2', N'CH', N'', N'', N'', NULL), (N'TemplateFileModel_CH_0', N'rtf模版', N'TemplateFileModel', N'0', N'CH', N'', N'', N'', NULL), (N'TemplateFileModel_CH_1', N'VSTO模式的word模版', N'TemplateFileModel', N'1', N'CH', N'', N'', N'', NULL), (N'TemplateFileModel_CH_2', N'VSTO模式的Excel模版', N'TemplateFileModel', N'2', N'CH', N'', N'', N'', NULL), (N'TemplateFileModel_CH_3', N'Wps模板', N'TemplateFileModel', N'3', N'CH', N'', N'', N'', NULL), (N'TextModel_CH_0', N'普通文本', N'TextModel', N'0', N'CH', N'', N'', N'', NULL), (N'TextModel_CH_1', N'密码框', N'TextModel', N'1', N'CH', N'', N'', N'', NULL), (N'TextModel_CH_2', N'大文本', N'TextModel', N'2', N'CH', N'', N'', N'', NULL), (N'TextModel_CH_3', N'富文本', N'TextModel', N'3', N'CH', N'', N'', N'', NULL), (N'ThreadKillRole_CH_0', N'不能删除', N'ThreadKillRole', N'0', N'CH', N'', N'', N'', NULL), (N'ThreadKillRole_CH_1', N'手工删除', N'ThreadKillRole', N'1', N'CH', N'', N'', N'', NULL), (N'ThreadKillRole_CH_2', N'自动删除', N'ThreadKillRole', N'2', N'CH', N'', N'', N'', NULL), (N'TimeShowRole_CH_0', N'仅日期', N'TimeShowRole', N'0', N'CH', N'', N'', N'', N'#000'), (N'TimeShowRole_CH_1', N'日期时间', N'TimeShowRole', N'1', N'CH', N'', N'', N'', N'#000'), (N'ToobarExcType_CH_0', N'超链接', N'ToobarExcType', N'0', N'CH', N'', N'', N'', NULL), (N'ToobarExcType_CH_1', N'函数', N'ToobarExcType', N'1', N'CH', N'', N'', N'', NULL), (N'TrackOrderBy_CH_0', N'按照时间先后顺序', N'TrackOrderBy', N'0', N'CH', N'', N'', N'', NULL), (N'TrackOrderBy_CH_1', N'倒序(新发生的在前面)', N'TrackOrderBy', N'1', N'CH', N'', N'', N'', NULL), (N'TSpan_CH_0', N'本周', N'TSpan', N'0', N'CH', N'', N'', N'', NULL), (N'TSpan_CH_1', N'上周', N'TSpan', N'1', N'CH', N'', N'', N'', NULL), (N'TSpan_CH_2', N'上上周', N'TSpan', N'2', N'CH', N'', N'', N'', NULL), (N'TSpan_CH_3', N'更早', N'TSpan', N'3', N'CH', N'', N'', N'', NULL), (N'TWay_CH_0', N'计算节假日', N'TWay', N'0', N'CH', N'', N'', N'', NULL), (N'TWay_CH_1', N'不计算节假日', N'TWay', N'1', N'CH', N'', N'', N'', NULL), (N'UIRowStyleGlo_CH_0', N'无风格', N'UIRowStyleGlo', N'0', N'CH', N'', N'', N'', NULL), (N'UIRowStyleGlo_CH_1', N'交替风格', N'UIRowStyleGlo', N'1', N'CH', N'', N'', N'', NULL), (N'UIRowStyleGlo_CH_2', N'鼠标移动', N'UIRowStyleGlo', N'2', N'CH', N'', N'', N'', NULL), (N'UIRowStyleGlo_CH_3', N'交替并鼠标移动', N'UIRowStyleGlo', N'3', N'CH', N'', N'', N'', NULL), (N'UploadFileCheck_CH_0', N'不控制', N'UploadFileCheck', N'0', N'CH', N'', N'', N'', NULL), (N'UploadFileCheck_CH_1', N'上传附件个数不能为0', N'UploadFileCheck', N'1', N'CH', N'', N'', N'', NULL), (N'UploadFileCheck_CH_2', N'每个类别下面的个数不能为0', N'UploadFileCheck', N'2', N'CH', N'', N'', N'', NULL), (N'UploadFileNumCheck_CH_0', N'不用校验', N'UploadFileNumCheck', N'0', N'CH', N'', N'', N'', NULL), (N'UploadFileNumCheck_CH_1', N'不能为空', N'UploadFileNumCheck', N'1', N'CH', N'', N'', N'', NULL)
GO

INSERT INTO [dbo].[Sys_Enum] ([MyPK], [Lab], [EnumKey], [IntKey], [Lang], [OrgNo], [StrKey], [RefPK], [ValColor]) VALUES (N'UploadFileNumCheck_CH_2', N'每个类别下不能为空', N'UploadFileNumCheck', N'2', N'CH', N'', N'', N'', NULL), (N'UrlSrcType_CH_0', N'自定义', N'UrlSrcType', N'0', N'CH', N'', N'', N'', NULL), (N'UrlSrcType_CH_1', N'地图', N'UrlSrcType', N'1', N'CH', N'', N'', N'', NULL), (N'UrlSrcType_CH_2', N'流程轨迹表', N'UrlSrcType', N'2', N'CH', N'', N'', N'', NULL), (N'UrlSrcType_CH_3', N'流程轨迹图', N'UrlSrcType', N'3', N'CH', N'', N'', N'', NULL), (N'USSWorkIDRole_CH_0', N'仅生成一个WorkID', N'USSWorkIDRole', N'0', N'CH', N'', N'', N'', NULL), (N'USSWorkIDRole_CH_1', N'按接受人生成WorkID', N'USSWorkIDRole', N'1', N'CH', N'', N'', N'', NULL), (N'WFSta_CH_0', N'运行中', N'WFSta', N'0', N'CH', N'', N'', N'', NULL), (N'WFSta_CH_1', N'已完成', N'WFSta', N'1', N'CH', N'', N'', N'', NULL), (N'WFSta_CH_2', N'其他', N'WFSta', N'2', N'CH', N'', N'', N'', NULL), (N'WFState_CH_0', N'空白', N'WFState', N'0', N'CH', N'', N'', N'', NULL), (N'WFState_CH_1', N'草稿', N'WFState', N'1', N'CH', N'', N'', N'', NULL), (N'WFState_CH_10', N'批处理', N'WFState', N'10', N'CH', N'', N'', N'', NULL), (N'WFState_CH_11', N'加签回复状态', N'WFState', N'11', N'CH', N'', N'', N'', NULL), (N'WFState_CH_2', N'运行中', N'WFState', N'2', N'CH', N'', N'', N'', NULL), (N'WFState_CH_3', N'已完成', N'WFState', N'3', N'CH', N'', N'', N'', NULL), (N'WFState_CH_4', N'挂起', N'WFState', N'4', N'CH', N'', N'', N'', NULL), (N'WFState_CH_5', N'退回', N'WFState', N'5', N'CH', N'', N'', N'', NULL), (N'WFState_CH_6', N'转发', N'WFState', N'6', N'CH', N'', N'', N'', NULL), (N'WFState_CH_7', N'删除', N'WFState', N'7', N'CH', N'', N'', N'', NULL), (N'WFState_CH_8', N'加签', N'WFState', N'8', N'CH', N'', N'', N'', NULL), (N'WFState_CH_9', N'冻结', N'WFState', N'9', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_10', N'批处理', N'WFStateApp', N'10', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_2', N'运行中', N'WFStateApp', N'2', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_3', N'已完成', N'WFStateApp', N'3', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_4', N'挂起', N'WFStateApp', N'4', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_5', N'退回', N'WFStateApp', N'5', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_6', N'转发', N'WFStateApp', N'6', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_7', N'删除', N'WFStateApp', N'7', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_8', N'加签', N'WFStateApp', N'8', N'CH', N'', N'', N'', NULL), (N'WFStateApp_CH_9', N'冻结', N'WFStateApp', N'9', N'CH', N'', N'', N'', NULL), (N'WhatAreYouTodo_CH_0', N'关闭提示窗口', N'WhatAreYouTodo', N'0', N'CH', N'', N'', N'', NULL), (N'WhatAreYouTodo_CH_1', N'关闭提示窗口并刷新', N'WhatAreYouTodo', N'1', N'CH', N'', N'', N'', NULL), (N'WhatAreYouTodo_CH_2', N'转入到Search.htm页面上去', N'WhatAreYouTodo', N'2', N'CH', N'', N'', N'', NULL), (N'WhenOverSize_CH_0', N'不处理', N'WhenOverSize', N'0', N'CH', N'', N'', N'', NULL), (N'WhenOverSize_CH_1', N'向下顺增行', N'WhenOverSize', N'1', N'CH', N'', N'', N'', NULL), (N'WhenOverSize_CH_2', N'次页显示', N'WhenOverSize', N'2', N'CH', N'', N'', N'', NULL), (N'WhoExeIt_CH_0', N'操作员执行', N'WhoExeIt', N'0', N'CH', N'', N'', N'', NULL), (N'WhoExeIt_CH_1', N'机器执行', N'WhoExeIt', N'1', N'CH', N'', N'', N'', NULL), (N'WhoExeIt_CH_2', N'混合执行', N'WhoExeIt', N'2', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_0', N'WorkID是主键', N'WhoIsPK', N'0', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_1', N'FID是主键(干流程的WorkID)', N'WhoIsPK', N'1', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_2', N'父流程ID是主键', N'WhoIsPK', N'2', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_3', N'延续流程ID是主键', N'WhoIsPK', N'3', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_4', N'P2WorkID是主键', N'WhoIsPK', N'4', N'CH', N'', N'', N'', NULL), (N'WhoIsPK_CH_5', N'P3WorkID是主键', N'WhoIsPK', N'5', N'CH', N'', N'', N'', NULL), (N'WinCardH_CH_0', N'75%', N'WinCardH', N'0', N'CH', N'', N'', N'', NULL), (N'WinCardH_CH_1', N'50%', N'WinCardH', N'1', N'CH', N'', N'', N'', NULL), (N'WinCardH_CH_2', N'100%', N'WinCardH', N'2', N'CH', N'', N'', N'', NULL), (N'WinCardH_CH_3', N'85%', N'WinCardH', N'3', N'CH', N'', N'', N'', NULL), (N'WinCardH_CH_4', N'25%', N'WinCardH', N'4', N'CH', N'', N'', N'', NULL), (N'WinCardW_CH_0', N'75%', N'WinCardW', N'0', N'CH', N'', N'', N'', NULL), (N'WinCardW_CH_1', N'50%', N'WinCardW', N'1', N'CH', N'', N'', N'', NULL), (N'WinCardW_CH_2', N'100%', N'WinCardW', N'2', N'CH', N'', N'', N'', NULL), (N'WinCardW_CH_3', N'25%', N'WinCardW', N'3', N'CH', N'', N'', N'', NULL), (N'WindowsDBType_CH_0', N'数据库查询SQL', N'WindowsDBType', N'0', N'CH', N'', N'', N'', NULL), (N'WindowsDBType_CH_1', N'执行Url返回Json', N'WindowsDBType', N'1', N'CH', N'', N'', N'', NULL), (N'WindowsDBType_CH_2', N'执行\DataUser\JSLab\Windows.js的函数.', N'WindowsDBType', N'2', N'CH', N'', N'', N'', NULL), (N'WindowsShowType_CH_0', N'饼图', N'WindowsShowType', N'0', N'CH', N'', N'', N'', NULL), (N'WindowsShowType_CH_1', N'柱图', N'WindowsShowType', N'1', N'CH', N'', N'', N'', NULL), (N'WindowsShowType_CH_2', N'折线图', N'WindowsShowType', N'2', N'CH', N'', N'', N'', NULL), (N'WindowsShowType_CH_4', N'简单Table', N'WindowsShowType', N'4', N'CH', N'', N'', N'', NULL), (N'WorkRecModel_CH_0', N'日志', N'WorkRecModel', N'0', N'CH', N'', N'', N'', NULL), (N'WorkRecModel_CH_1', N'周报', N'WorkRecModel', N'1', N'CH', N'', N'', N'', NULL), (N'WorkRecModel_CH_2', N'月报', N'WorkRecModel', N'2', N'CH', N'', N'', N'', NULL), (N'XB_CH_0', N'女', N'XB', N'0', N'CH', N'', N'', N'', NULL), (N'XB_CH_1', N'男', N'XB', N'1', N'CH', N'', N'', N'', NULL), (N'YBFlowReturnRole_CH_0', N'不能退回', N'YBFlowReturnRole', N'0', N'CH', N'', N'', N'', NULL), (N'YBFlowReturnRole_CH_1', N'退回到父流程的开始节点', N'YBFlowReturnRole', N'1', N'CH', N'', N'', N'', NULL), (N'YBFlowReturnRole_CH_2', N'退回到父流程的任何节点', N'YBFlowReturnRole', N'2', N'CH', N'', N'', N'', NULL), (N'YBFlowReturnRole_CH_3', N'退回父流程的启动节点', N'YBFlowReturnRole', N'3', N'CH', N'', N'', N'', NULL), (N'YBFlowReturnRole_CH_4', N'可退回到指定的节点', N'YBFlowReturnRole', N'4', N'CH', N'', N'', N'', NULL), (N'ZZMM_CH_0', N'少先队员', N'ZZMM', N'0', N'CH', N'', N'', N'', NULL), (N'ZZMM_CH_1', N'团员', N'ZZMM', N'1', N'CH', N'', N'', N'', NULL), (N'ZZMM_CH_2', N'党员', N'ZZMM', N'2', N'CH', N'', N'', N'', NULL), (N'表单展示方式_CH_0', N'普通方式', N'表单展示方式', N'0', N'CH', N'', N'', N'', NULL), (N'表单展示方式_CH_1', N'页签方式', N'表单展示方式', N'1', N'CH', N'', N'', N'', NULL), (N'经典表单显示方式_CH_0', N'4列', N'经典表单显示方式', N'0', N'CH', N'', N'', N'', NULL), (N'经典表单显示方式_CH_1', N'6列', N'经典表单显示方式', N'1', N'CH', N'', N'', N'', NULL), (N'经典表单显示方式_CH_2', N'上下模式3列', N'经典表单显示方式', N'2', N'CH', N'', N'', N'', NULL), (N'实体表单显示列数_CH_0', N'4列', N'实体表单显示列数', N'0', N'CH', N'', N'', N'', NULL), (N'实体表单显示列数_CH_1', N'6列', N'实体表单显示列数', N'1', N'CH', N'', N'', N'', NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_EnumMain
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_EnumMain]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_EnumMain]
GO

CREATE TABLE [dbo].[Sys_EnumMain] (
  [No] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [CfgVal] nvarchar(1500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Lang] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnumKey] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsHaveDtl] int  NULL,
  [EnumType] int  NULL,
  [AtPara] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx0] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val0] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx1] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val1] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx2] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val2] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx3] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val3] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx4] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val4] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx5] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val5] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx6] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val6] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx7] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val7] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx8] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val8] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx9] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val9] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx10] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val10] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx11] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val11] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx12] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val12] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx13] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val13] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx14] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val14] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx15] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val15] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx16] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val16] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx17] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val17] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx18] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val18] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx19] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val19] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx20] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val20] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx21] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val21] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx22] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val22] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx23] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val23] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx24] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val24] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx25] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val25] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx26] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val26] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx27] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val27] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx28] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val28] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx29] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val29] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_EnumMain] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_EnumMain
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_EnumMain] ([No], [Name], [CfgVal], [Lang], [EnumKey], [OrgNo], [IsHaveDtl], [EnumType], [AtPara], [Idx0], [Val0], [Idx1], [Val1], [Idx2], [Val2], [Idx3], [Val3], [Idx4], [Val4], [Idx5], [Val5], [Idx6], [Val6], [Idx7], [Val7], [Idx8], [Val8], [Idx9], [Val9], [Idx10], [Val10], [Idx11], [Val11], [Idx12], [Val12], [Idx13], [Val13], [Idx14], [Val14], [Idx15], [Val15], [Idx16], [Val16], [Idx17], [Val17], [Idx18], [Val18], [Idx19], [Val19], [Idx20], [Val20], [Idx21], [Val21], [Idx22], [Val22], [Idx23], [Val23], [Idx24], [Val24], [Idx25], [Val25], [Idx26], [Val26], [Idx27], [Val27], [Idx28], [Val28], [Idx29], [Val29]) VALUES (N'ccs_QingJiaLeiXing', N'请假类型', N'@0=事假@1=病假@2=其它', N'CH', N'QingJiaLeiXing', N'ccs', N'0', N'0', N'@EnName=TS.FrmUI.SysEnumMainInt', N'0', N'事假', N'1', N'病假', N'2', N'其它', N'3', N'', N'4', N'', N'5', N'', N'6', N'', N'7', N'', N'8', N'', N'9', N'', N'10', N'', N'11', N'', N'12', N'', N'13', N'', N'14', N'', N'15', N'', N'16', N'', N'17', N'', N'18', N'', N'19', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_EnVer
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_EnVer]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_EnVer]
GO

CREATE TABLE [dbo].[Sys_EnVer] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnPKValue] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnVer] int  NULL,
  [RecNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyNote] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_EnVer] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_EnVer
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_EnVerDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_EnVerDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_EnVerDtl]
GO

CREATE TABLE [dbo].[Sys_EnVerDtl] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPK] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnPKValue] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrKey] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [LGType] int  NULL,
  [BindKey] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyVal] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_EnVerDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_EnVerDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FileManager
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FileManager]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FileManager]
GO

CREATE TABLE [dbo].[Sys_FileManager] (
  [OID] int  NOT NULL,
  [AttrFileName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrFileNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FileManager] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FileManager
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FormTree
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FormTree]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FormTree]
GO

CREATE TABLE [dbo].[Sys_FormTree] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FormTree] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FormTree
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_FormTree] ([No], [Name], [ParentNo], [Idx], [OrgNo]) VALUES (N'100', N'SAAS表单树', N'0', N'0', N'100'), (N'1001', N'行政办公', N'ccs', N'2', N'ccs'), (N'1002', N'财务流程', N'ccs', N'3', N'ccs'), (N'1003', N'项目管理', N'ccs', N'4', N'ccs'), (N'1004', N'其他流程', N'ccs', N'5', N'ccs'), (N'ccs', N'驰骋公司', N'100', N'1', N'ccs')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmAttachment
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmAttachment]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmAttachment]
GO

CREATE TABLE [dbo].[Sys_FrmAttachment] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoOfObj] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [AthRunModel] int  NULL,
  [AthSaveWay] int  NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exts] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NumOfUpload] int  NULL,
  [TopNumOfUpload] int  NULL,
  [FileMaxSize] int  NULL,
  [UploadFileNumCheck] int  NULL,
  [Sort] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [H] float(53)  NULL,
  [IsUpload] int  NULL,
  [IsVisable] int  NULL,
  [FileType] int  NULL,
  [ReadRole] int  NULL,
  [PicUploadType] int  NULL,
  [DeleteWay] int  NULL,
  [IsDownload] int  NULL,
  [IsAutoSize] int  NULL,
  [IsNote] int  NULL,
  [IsExpCol] int  NULL,
  [IsShowTitle] int  NULL,
  [UploadType] int  NULL,
  [IsIdx] int  NULL,
  [CtrlWay] int  NULL,
  [AthUploadWay] int  NULL,
  [DataRefNoOfObj] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [AthEditType] int  NULL,
  [AtPara] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupID] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnableTemplate] int  NULL,
  [OpenDesc] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsTurn2Html] int DEFAULT '0' NULL,
  [MyFileNum] int DEFAULT '0' NULL,
  [IsToHeLiuHZ] int DEFAULT '1' NULL,
  [IsHeLiuHuiZong] int DEFAULT '1' NULL,
  [AthSingleRole] int DEFAULT '0' NULL,
  [AthEditModel] int DEFAULT '0' NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmAttachment] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmAttachment
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmAttachmentDB
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmAttachmentDB]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmAttachmentDB]
GO

CREATE TABLE [dbo].[Sys_FrmAttachmentDB] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_FrmAttachment] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoOfObj] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FID] int  NULL,
  [NodeID] int  NULL,
  [Sort] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileFullName] nvarchar(700) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileExts] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileSize] float(53)  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_DeptName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyNote] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsRowLock] int  NULL,
  [Idx] int  NULL,
  [UploadGUID] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmAttachmentDB] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmAttachmentDB
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmBtn
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmBtn]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmBtn]
GO

CREATE TABLE [dbo].[Sys_FrmBtn] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Lab] nvarchar(3900) COLLATE Chinese_PRC_CI_AS  NULL,
  [X] float(53)  NULL,
  [Y] float(53)  NULL,
  [IsView] int  NULL,
  [IsEnable] int  NULL,
  [UAC] int  NULL,
  [UACContext] nvarchar(3900) COLLATE Chinese_PRC_CI_AS  NULL,
  [EventType] int  NULL,
  [EventContext] nvarchar(3900) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgOK] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgErr] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [BtnID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupID] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmBtn] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmBtn
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmDBRemark
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmDBRemark]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmDBRemark]
GO

CREATE TABLE [dbo].[Sys_FrmDBRemark] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [Field] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [Remark] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmDBRemark] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmDBRemark
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmDBVer
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmDBVer]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmDBVer]
GO

CREATE TABLE [dbo].[Sys_FrmDBVer] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChangeFields] nvarchar(3900) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChangeNum] int  NULL,
  [TrackID] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecNo] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Ver] int  NULL,
  [KeyOfEn] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmDBVer] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmDBVer
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmEleDB
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmEleDB]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmEleDB]
GO

CREATE TABLE [dbo].[Sys_FrmEleDB] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EleID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FID] int  NULL,
  [Tag1] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag3] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag4] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag5] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmEleDB] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmEleDB
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmEvent
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmEvent]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmEvent]
GO

CREATE TABLE [dbo].[Sys_FrmEvent] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EventSource] int  NULL,
  [EventID] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefFlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [EventDoType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_DBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DoDoc] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgOK] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgError] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgCtrl] int  NULL,
  [MailEnable] int  NULL,
  [MailTitle] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MailDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [SMSEnable] int  NULL,
  [SMSDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [MobilePushEnable] int  NULL,
  [PostModel] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParaMoel] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParaDocs] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParaDTModel] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmEvent] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmEvent
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmImg
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmImg]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmImg]
GO

CREATE TABLE [dbo].[Sys_FrmImg] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [KeyOfEn] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImgAppType] int  NULL,
  [UIWidth] float(53)  NULL,
  [UIHeight] float(53)  NULL,
  [ImgURL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImgPath] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [LinkURL] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [LinkTarget] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag0] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImgSrcType] int  NULL,
  [IsEdit] int  NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnPK] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColSpan] int  NULL,
  [LabelColSpan] int  NULL,
  [RowSpan] int  NULL,
  [GroupID] int  NULL,
  [GroupIDText] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmImg] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmImg
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmImgAth
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmImgAth]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmImgAth]
GO

CREATE TABLE [dbo].[Sys_FrmImgAth] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEdit] int  NULL,
  [IsRequired] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [H] float(53) DEFAULT '200.0' NULL,
  [W] float(53) DEFAULT '160.0' NULL,
  [GroupID] int DEFAULT '0' NULL,
  [GroupIDText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [ColSpan] int DEFAULT '0' NULL,
  [LabelColSpan] int DEFAULT '1' NULL,
  [RowSpan] int DEFAULT '1' NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmImgAth] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmImgAth
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmImgAthDB
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmImgAthDB]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmImgAthDB]
GO

CREATE TABLE [dbo].[Sys_FrmImgAthDB] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_FrmImgAth] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileFullName] nvarchar(700) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileExts] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FileSize] float(53)  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyNote] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmImgAthDB] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmImgAthDB
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmPrintTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmPrintTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmPrintTemplate]
GO

CREATE TABLE [dbo].[Sys_FrmPrintTemplate] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [TempFilePath] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeID] int  NULL,
  [FlowNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [TemplateFileModel] int  NULL,
  [PrintFileType] int  NULL,
  [PrintOpenModel] int  NULL,
  [AthSaveWay] int  NULL,
  [QRModel] int  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmPrintTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmPrintTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmRB
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmRB]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmRB]
GO

CREATE TABLE [dbo].[Sys_FrmRB] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [KeyOfEn] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnumKey] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [Lab] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IntKey] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [UIIsEnable] int  NULL,
  [Script] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [FieldsCfg] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [SetVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tip] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmRB] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmRB
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_FrmSln
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_FrmSln]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_FrmSln]
GO

CREATE TABLE [dbo].[Sys_FrmSln] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [KeyOfEn] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [EleType] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [UIIsEnable] int  NULL,
  [UIVisible] int  NULL,
  [IsSigan] int  NULL,
  [IsNotNull] int  NULL,
  [RegularExp] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsWriteToFlowTable] int  NULL,
  [IsWriteToGenerWorkFlow] int  NULL,
  [DefVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_FrmSln] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_FrmSln
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_GloVar
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_GloVar]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_GloVar]
GO

CREATE TABLE [dbo].[Sys_GloVar] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(120) COLLATE Chinese_PRC_CI_AS  NULL,
  [Val] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupKey] nvarchar(120) COLLATE Chinese_PRC_CI_AS  NULL,
  [Note] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_GloVar] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_GloVar
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_GroupEnsTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_GroupEnsTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_GroupEnsTemplate]
GO

CREATE TABLE [dbo].[Sys_GroupEnsTemplate] (
  [OID] int  NOT NULL,
  [EnName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnsName] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [OperateCol] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [Attrs] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_GroupEnsTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_GroupEnsTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_GroupField
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_GroupField]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_GroupField]
GO

CREATE TABLE [dbo].[Sys_GroupField] (
  [OID] int  NOT NULL,
  [Lab] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CtrlID] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsZDMobile] int  NULL,
  [ShowType] int  NULL,
  [ParentOID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameFT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameEn] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameJP] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_GroupField] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_GroupField
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_GroupField] ([OID], [Lab], [FrmID], [CtrlType], [CtrlID], [IsZDMobile], [ShowType], [ParentOID], [Idx], [GUID], [AtPara], [NameFT], [NameEn], [NameJP]) VALUES (N'101', N'基本信息', N'ND101', N'', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N''), (N'103', N'流程信息', N'ND1Rpt', N'', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N''), (N'105', N'审核信息', N'ND102', N'FWC', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N''), (N'107', N'审核信息', N'ND103', N'FWC', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N''), (N'109', N'审核信息', N'ND104', N'FWC', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N''), (N'111', N'审核信息', N'ND105', N'FWC', N'', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapAttr
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapAttr]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapAttr]
GO

CREATE TABLE [dbo].[Sys_MapAttr] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [KeyOfEn] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [DefVal] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [DefValType] int  NULL,
  [UIContralType] int  NULL,
  [MyDataType] int  NULL,
  [LGType] int  NULL,
  [UIWidth] float(53)  NULL,
  [UIHeight] float(53)  NULL,
  [MinLen] int  NULL,
  [MaxLen] int  NULL,
  [UIBindKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [UIRefKey] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [UIRefKeyText] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExtIsSum] int  NULL,
  [UIVisible] int  NULL,
  [UIIsEnable] int  NULL,
  [UIIsLine] int  NULL,
  [UIIsInput] int  NULL,
  [TextModel] int  NULL,
  [IsSupperText] int  NULL,
  [FontSize] int  NULL,
  [IsSigan] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [EditType] int  NULL,
  [Tag] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag3] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tip] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColSpan] int  NULL,
  [LabelColSpan] int  NULL,
  [RowSpan] int  NULL,
  [GroupID] int  NULL,
  [IsEnableInAPP] int  NULL,
  [CSSCtrl] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CSSLabel] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [ICON] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameFT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameEn] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NameJP] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupIDText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [CSSCtrlText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [DefValText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [RBShowModel] int DEFAULT '3' NULL,
  [TagT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileH] int DEFAULT '0' NULL,
  [MyFileW] int DEFAULT '0' NULL,
  [MyFileSize] float(53) DEFAULT '0.0' NULL,
  [NumMin] nvarchar(400) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NumMax] nvarchar(400) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NumStepLength] float(53) DEFAULT '1.0' NULL,
  [NumScale] int DEFAULT '2' NULL,
  [ExtDefVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [ExtDefValText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [CSSLabelText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [IsLabLine] int DEFAULT '0' NULL
)
GO

ALTER TABLE [dbo].[Sys_MapAttr] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapAttr
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_MapAttr] ([MyPK], [FK_MapData], [KeyOfEn], [Name], [DefVal], [DefValType], [UIContralType], [MyDataType], [LGType], [UIWidth], [UIHeight], [MinLen], [MaxLen], [UIBindKey], [UIRefKey], [UIRefKeyText], [ExtIsSum], [UIVisible], [UIIsEnable], [UIIsLine], [UIIsInput], [TextModel], [IsSupperText], [FontSize], [IsSigan], [GUID], [EditType], [Tag], [Tag1], [Tag2], [Tag3], [Tip], [ColSpan], [LabelColSpan], [RowSpan], [GroupID], [IsEnableInAPP], [CSSCtrl], [CSSLabel], [Idx], [ICON], [AtPara], [NameFT], [NameEn], [NameJP], [GroupIDText], [CSSCtrlText], [DefValText], [RBShowModel], [TagT], [MyFileName], [MyFilePath], [MyFileExt], [WebPath], [MyFileH], [MyFileW], [MyFileSize], [NumMin], [NumMax], [NumStepLength], [NumScale], [ExtDefVal], [ExtDefValText], [CSSLabelText], [IsLabLine]) VALUES (N'ND101_AtPara', N'ND101', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'7', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_Dao', N'ND101', N'Dao', N'到', N'', N'6', N'0', N'6', N'0', N'125', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'14', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_Emps', N'ND101', N'Emps', N'Emps', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'6', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_FID', N'ND101', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'0', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_FK_Dept', N'ND101', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'4', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_FK_DeptName', N'ND101', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'5', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_FK_NY', N'ND101', N'FK_NY', N'年月', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'7', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'9', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_OID', N'ND101', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'1', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_QingJiaLeiXing', N'ND101', N'QingJiaLeiXing', N'请假类型', N'0', N'1', N'1', N'2', N'1', N'100', N'23', N'0', N'300', N'QingJiaLeiXing', N'', N'', N'0', N'1', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'16', N'0', N'@DtlIsRepeat=0@IsLabLine=0@RBShowModel=3', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND101_QingJiaYuanYin', N'ND101', N'QingJiaYuanYin', N'请假原因', N'', N'1', N'0', N'1', N'0', N'100', N'45', N'0', N'4000', N'', N'', N'', N'0', N'1', N'1', N'0', N'0', N'2', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'4', N'1', N'1', N'101', N'1', N'0', N'0', N'17', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_RDT', N'ND101', N'RDT', N'接受时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'20', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'2', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_Rec', N'ND101', N'Rec', N'完成时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'20', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_RiQiCong', N'ND101', N'RiQiCong', N'日期从', N'', N'6', N'0', N'6', N'0', N'125', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'13', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_SQDept', N'ND101', N'SQDept', N'申请人部门', N'@WebUser.FK_DeptName', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'3', N'1', N'1', N'101', N'1', N'0', N'0', N'12', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_SQR', N'ND101', N'SQR', N'申请人', N'@WebUser.Name', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'10', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_SQRQ', N'ND101', N'SQRQ', N'申请日期', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'11', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_TianShu', N'ND101', N'TianShu', N'天数', N'', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'15', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND101_Title', N'ND101', N'Title', N'标题', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'200', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'8', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_AtPara', N'ND102', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165929', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_Emps', N'ND102', N'Emps', N'Emps', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165928', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_FID', N'ND102', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165928', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_FK_Dept', N'ND102', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165929', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_FK_DeptName', N'ND102', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165929', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_OID', N'ND102', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165927', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_RDT', N'ND102', N'RDT', N'接受时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165928', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND102_Rec', N'ND102', N'Rec', N'发起时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165928', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_AtPara', N'ND103', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170026', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_Emps', N'ND103', N'Emps', N'Emps', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170026', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_FID', N'ND103', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170025', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_FK_Dept', N'ND103', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170026', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_FK_DeptName', N'ND103', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170026', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_OID', N'ND103', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170025', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_RDT', N'ND103', N'RDT', N'接受时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170025', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND103_Rec', N'ND103', N'Rec', N'发起时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170025', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_AtPara', N'ND104', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170036', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_Emps', N'ND104', N'Emps', N'Emps', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170035', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_FID', N'ND104', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170034', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_FK_Dept', N'ND104', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170035', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_FK_DeptName', N'ND104', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170036', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_OID', N'ND104', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170034', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_RDT', N'ND104', N'RDT', N'接受时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170035', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND104_Rec', N'ND104', N'Rec', N'发起时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170035', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_AtPara', N'ND105', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170050', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_Emps', N'ND105', N'Emps', N'Emps', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170050', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_FID', N'ND105', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170049', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_FK_Dept', N'ND105', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170050', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_FK_DeptName', N'ND105', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170050', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_OID', N'ND105', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170049', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_RDT', N'ND105', N'RDT', N'接受时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170049', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND105_Rec', N'ND105', N'Rec', N'发起时间', N'@RDT', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821170049', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_AtPara', N'ND1Rpt', N'AtPara', N'参数', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'4000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165937', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_BillNo', N'ND1Rpt', N'BillNo', N'单据编号', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171151', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_Dao', N'ND1Rpt', N'Dao', N'到', N'', N'6', N'0', N'6', N'0', N'125', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171145', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_Emps', N'ND1Rpt', N'Emps', N'参与者', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'8000', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165937', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_FID', N'ND1Rpt', N'FID', N'FID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165937', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_FK_Dept', N'ND1Rpt', N'FK_Dept', N'操作员部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821165938', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_FK_DeptName', N'ND1Rpt', N'FK_DeptName', N'操作员部门名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'50', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165938', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_FK_NY', N'ND1Rpt', N'FK_NY', N'年月', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'7', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821165938', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_FlowDaySpan', N'ND1Rpt', N'FlowDaySpan', N'流程时长(天)', N'0', N'1', N'0', N'3', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171149', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowEmps', N'ND1Rpt', N'FlowEmps', N'参与人', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'1000', N'', N'', N'', N'0', N'1', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171148', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowEnder', N'ND1Rpt', N'FlowEnder', N'结束人', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171149', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowEnderRDT', N'ND1Rpt', N'FlowEnderRDT', N'结束时间', N'', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171149', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowEndNode', N'ND1Rpt', N'FlowEndNode', N'结束节点', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171149', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowStarter', N'ND1Rpt', N'FlowStarter', N'发起人', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171148', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_FlowStartRDT', N'ND1Rpt', N'FlowStartRDT', N'发起时间', N'', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171149', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_GUID', N'ND1Rpt', N'GUID', N'GUID', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'32', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171152', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_OID', N'ND1Rpt', N'OID', N'WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165939', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_PEmp', N'ND1Rpt', N'PEmp', N'调起子流程的人员', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171151', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_PFlowNo', N'ND1Rpt', N'PFlowNo', N'父流程编号', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171150', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_PNodeID', N'ND1Rpt', N'PNodeID', N'父流程启动的节点', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171150', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_PrjName', N'ND1Rpt', N'PrjName', N'项目名称', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171152', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_PrjNo', N'ND1Rpt', N'PrjNo', N'项目编号', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'100', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171152', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_PWorkID', N'ND1Rpt', N'PWorkID', N'父流程WorkID', N'0', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171150', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_QingJiaLeiXing', N'ND1Rpt', N'QingJiaLeiXing', N'请假类型', N'0', N'1', N'1', N'2', N'1', N'100', N'23', N'0', N'300', N'QingJiaLeiXing', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171146', N'0', N'@DtlIsRepeat=0@IsLabLine=0@RBShowModel=3', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_QingJiaYuanYin', N'ND1Rpt', N'QingJiaYuanYin', N'请假原因', N'', N'1', N'0', N'1', N'0', N'100', N'45', N'0', N'4000', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'4', N'1', N'1', N'101', N'1', N'0', N'0', N'821171146', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_RDT', N'ND1Rpt', N'RDT', N'接受时间', N'', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165939', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_Rec', N'ND1Rpt', N'Rec', N'完成时间', N'', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'40', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'1', N'', N'', N'', N'', N'1', N'1', N'1', N'0', N'1', N'0', N'0', N'821165939', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_RiQiCong', N'ND1Rpt', N'RiQiCong', N'日期从', N'', N'6', N'0', N'6', N'0', N'125', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171146', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_SQDept', N'ND1Rpt', N'SQDept', N'申请人部门', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'3', N'1', N'1', N'101', N'1', N'0', N'0', N'821165939', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_SQR', N'ND1Rpt', N'SQR', N'申请人', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821165939', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_SQRQ', N'ND1Rpt', N'SQRQ', N'申请日期', N'', N'1', N'0', N'7', N'0', N'165', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821165940', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_TianShu', N'ND1Rpt', N'TianShu', N'天数', N'', N'1', N'0', N'2', N'0', N'100', N'23', N'0', N'300', N'', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171147', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_Title', N'ND1Rpt', N'Title', N'标题', N'', N'1', N'0', N'1', N'0', N'100', N'23', N'0', N'200', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821165940', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', NULL), (N'ND1Rpt_WFSta', N'ND1Rpt', N'WFSta', N'状态', N'', N'1', N'1', N'2', N'1', N'100', N'23', N'0', N'1000', N'WFSta', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'101', N'1', N'0', N'0', N'821171148', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0'), (N'ND1Rpt_WFState', N'ND1Rpt', N'WFState', N'流程状态', N'', N'1', N'1', N'2', N'1', N'100', N'23', N'0', N'1000', N'WFState', N'', N'', N'0', N'1', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'', N'1', N'1', N'1', N'103', N'1', N'0', N'0', N'821171148', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'3', N'0', N'', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'1', N'2', N'0', N'0', N'0', N'0')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapData
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapData]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapData]
GO

CREATE TABLE [dbo].[Sys_MapData] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FormEventEntity] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EnPK] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [PTable] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [PTableModel] int  NULL,
  [UrlExt] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Dtls] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmW] int  NULL,
  [TableCol] int  NULL,
  [Tag] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_FormTree] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmType] int  NULL,
  [FrmShowType] int  NULL,
  [EntityType] int  NULL,
  [IsEnableJs] int  NULL,
  [AppType] int  NULL,
  [DBSrc] varchar(600) COLLATE Chinese_PRC_CI_AS  NULL,
  [BodyAttr] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Note] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Designer] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [DesignerUnit] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [DesignerContact] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [Ver] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowCtrls] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBType] int DEFAULT '0' NULL,
  [ExpEn] nvarchar(600) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ExpList] nvarchar(600) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MainTable] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MainTablePK] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ExpCount] nvarchar(600) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RowOpenModel] int DEFAULT '2' NULL,
  [SearchDictOpenType] int DEFAULT '0' NULL,
  [PopHeight] int DEFAULT '500' NULL,
  [PopWidth] int DEFAULT '760' NULL,
  [EntityEditModel] int DEFAULT '0' NULL,
  [BillNoFormat] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SortColumns] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ColorSet] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FieldSet] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ForamtFunc] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FK_FormTreeText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsSelectMore] int DEFAULT '1' NULL,
  [TitleRole] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RowColorSet] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RefDict] nvarchar(190) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BtnRefBill] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '关联单据' NULL,
  [RefBillRole] int DEFAULT '0' NULL,
  [RefBill] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HidenField] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag0] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag1] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Tag2] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EntityShowModel] int DEFAULT '0' NULL,
  [IsTemplate] int DEFAULT '0' NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RightViewWay] int DEFAULT '0' NULL,
  [RightViewTag] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RightDeptWay] int DEFAULT '0' NULL,
  [RightDeptTag] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DBURL] int DEFAULT '0' NULL,
  [URL] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TemplaterVer] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DBSave] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileH] int DEFAULT '0' NULL,
  [MyFileW] int DEFAULT '0' NULL,
  [MyFileSize] float(53) DEFAULT '0.0' NULL,
  [RefWorkModel] int DEFAULT '0' NULL,
  [RefBlurField] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RefUrl] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RefHtml] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HtmlTemplateFile] text COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_MapData] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapData
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_MapData] ([No], [Name], [FormEventEntity], [EnPK], [PTable], [PTableModel], [UrlExt], [Dtls], [FrmW], [TableCol], [Tag], [FK_FormTree], [FrmType], [FrmShowType], [EntityType], [IsEnableJs], [AppType], [DBSrc], [BodyAttr], [Note], [Designer], [DesignerUnit], [DesignerContact], [Idx], [GUID], [Ver], [Icon], [FlowCtrls], [AtPara], [OrgNo], [DBType], [ExpEn], [ExpList], [MainTable], [MainTablePK], [ExpCount], [RowOpenModel], [SearchDictOpenType], [PopHeight], [PopWidth], [EntityEditModel], [BillNoFormat], [SortColumns], [ColorSet], [FieldSet], [ForamtFunc], [FK_FormTreeText], [IsSelectMore], [TitleRole], [RowColorSet], [RefDict], [BtnRefBill], [RefBillRole], [RefBill], [HidenField], [Tag0], [Tag1], [Tag2], [EntityShowModel], [IsTemplate], [FK_Flow], [RightViewWay], [RightViewTag], [RightDeptWay], [RightDeptTag], [DBURL], [URL], [TemplaterVer], [DBSave], [MyFileName], [MyFilePath], [MyFileExt], [WebPath], [MyFileH], [MyFileW], [MyFileSize], [RefWorkModel], [RefBlurField], [RefUrl], [RefHtml], [HtmlTemplateFile]) VALUES (N'ND101', N'Start Node', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@MapExts_AutoNum=3@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL), (N'ND102', N'Node 2', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL), (N'ND103', N'New Node 3', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL), (N'ND104', N'New Node 4', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL), (N'ND105', N'New Node 5', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL), (N'ND1Rpt', N'请假流程-我的极简流程', N'', N'', N'ND1Rpt', N'0', N'', N'', N'900', N'0', N'', N'', N'0', N'0', N'0', N'0', N'0', N'local', N'', N'', N'', N'', N'', N'100', N'', N'', N'icon-doc', N'', N'@Ver=1', N'ccs', N'0', N'', N'', N'', N'', N'', N'2', N'0', N'500', N'760', N'0', N'', N'', N'', N'', N'', N'', N'1', N'', N'', N'', N'关联单据', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'', N'0', N'', N'0', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'', N'', NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapDataVer
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapDataVer]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapDataVer]
GO

CREATE TABLE [dbo].[Sys_MapDataVer] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Ver] int  NULL,
  [IsRel] int  NULL,
  [RowNumExt] int  NULL,
  [FrmID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrsNum] int  NULL,
  [DtlsNum] int  NULL,
  [AthsNum] int  NULL,
  [ExtsNum] int  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecNote] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_MapDataVer] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapDataVer
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapDtl]
GO

CREATE TABLE [dbo].[Sys_MapDtl] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Alias] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PTable] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupField] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPK] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FEBD] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Model] int  NULL,
  [DtlVer] int  NULL,
  [RowsOfList] int  NULL,
  [IsEnableGroupField] int  NULL,
  [IsShowSum] int  NULL,
  [IsShowIdx] int  NULL,
  [IsCopyNDData] int  NULL,
  [IsHLDtl] int  NULL,
  [IsReadonly] int  NULL,
  [IsShowTitle] int  NULL,
  [IsView] int  NULL,
  [IsInsert] int  NULL,
  [IsDelete] int  NULL,
  [IsUpdate] int  NULL,
  [IsBatchUpdate] int  NULL,
  [IsCopyThisData] int  NULL,
  [IsEnablePass] int  NULL,
  [IsEnableAthM] int  NULL,
  [IsCopyFirstData] int  NULL,
  [InitDBAttrs] nvarchar(40) COLLATE Chinese_PRC_CI_AS  NULL,
  [WhenOverSize] int  NULL,
  [DtlOpenType] int  NULL,
  [ListShowModel] int  NULL,
  [EditModel] int  NULL,
  [UrlDtl] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColAutoExp] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MobileShowModel] int  NULL,
  [MobileShowField] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [H] float(53)  NULL,
  [FrmW] float(53)  NULL,
  [FrmH] float(53)  NULL,
  [NumOfDtl] int  NULL,
  [IsEnableLink] int  NULL,
  [LinkLabel] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [LinkTarget] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [LinkUrl] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FilterSQLExp] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrderBySQLExp] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [ShowCols] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Btns] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsExp] int  NULL,
  [ImpModel] int  NULL,
  [ImpSQLSearch] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImpSQLInit] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImpSQLFullOneRow] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImpSQLNames] nvarchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsImp] int  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] varchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExcType] int DEFAULT '0' NULL,
  [IsEnableLink2] int DEFAULT '0' NULL,
  [LinkLabel2] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ExcType2] int DEFAULT '0' NULL,
  [LinkTarget2] nvarchar(10) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [LinkUrl2] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubThreadWorker] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubThreadWorkerText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Sys_MapDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapExt
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapExt]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapExt]
GO

CREATE TABLE [dbo].[Sys_MapExt] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPKVal] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExtModel] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExtType] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [DoWay] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrOfOper] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrsOfActive] nvarchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [Doc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag3] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag4] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag5] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag6] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [H] int  NULL,
  [W] int  NULL,
  [IsLazy] int  NULL,
  [DBType] int  NULL,
  [FK_DBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PRI] int  NULL,
  [AtPara] nvarchar(3999) COLLATE Chinese_PRC_CI_AS  NULL,
  [TagT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1T] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsLoadFull] int  NULL,
  [DocT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[Sys_MapExt] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapExt
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_MapExt] ([MyPK], [RefPKVal], [FK_MapData], [ExtModel], [ExtType], [DoWay], [AttrOfOper], [AttrsOfActive], [Doc], [Tag], [Tag1], [Tag2], [Tag3], [Tag4], [Tag5], [Tag6], [H], [W], [IsLazy], [DBType], [FK_DBSrc], [PRI], [AtPara], [TagT], [Tag1T], [IsLoadFull], [DocT]) VALUES (N'ND101_Dao_DateFieldInputRole', N'', N'ND101', N'DateFieldInputRole', N'DateFieldInputRole', N'2', N'Dao', N'', N'', N'GTE', N'RiQiCong', N'', N'', N'', N'', N'', N'500', N'400', N'0', N'0', N'local', N'0', N'', N'GTE', N'日期从', N'1', N''), (N'ND101_RiQiCong_DateFieldInputRole', N'', N'ND101', N'DateFieldInputRole', N'DateFieldInputRole', N'1', N'RiQiCong', N'', N'', N'', N'1', N'', N'', N'', N'', N'', N'500', N'400', N'0', N'0', N'local', N'0', N'', N'', N'', N'1', N''), (N'ND101_TianShu_ReqDays', N'', N'ND101', N'ReqDays', N'ReqDays', N'1', N'TianShu', N'', N'RiQiCong', N'0', N'Dao', N'', N'', N'', N'', N'', N'500', N'400', N'0', N'0', N'local', N'0', N'', N'不计算节假日', N'到', N'1', N'日期从')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_MapFrame
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_MapFrame]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_MapFrame]
GO

CREATE TABLE [dbo].[Sys_MapFrame] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_MapData] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [UrlSrcType] int  NULL,
  [FrameURL] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [URL] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [W] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [H] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsAutoSize] int  NULL,
  [EleType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [GUID] nvarchar(128) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int DEFAULT '0' NULL
)
GO

ALTER TABLE [dbo].[Sys_MapFrame] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_MapFrame
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_RptDept
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_RptDept]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_RptDept]
GO

CREATE TABLE [dbo].[Sys_RptDept] (
  [FK_Rpt] nvarchar(15) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Sys_RptDept] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_RptDept
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_RptEmp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_RptEmp]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_RptEmp]
GO

CREATE TABLE [dbo].[Sys_RptEmp] (
  [FK_Rpt] nvarchar(15) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Sys_RptEmp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_RptEmp
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_RptStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_RptStation]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_RptStation]
GO

CREATE TABLE [dbo].[Sys_RptStation] (
  [FK_Rpt] nvarchar(15) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[Sys_RptStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_RptStation
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_RptTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_RptTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_RptTemplate]
GO

CREATE TABLE [dbo].[Sys_RptTemplate] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EnsName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [D1] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [D2] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [D3] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [AlObjs] nvarchar(90) COLLATE Chinese_PRC_CI_AS  NULL,
  [Height] int  NULL,
  [Width] int  NULL,
  [IsSumBig] int  NULL,
  [IsSumLittle] int  NULL,
  [IsSumRight] int  NULL,
  [PercentModel] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_RptTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_RptTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_Serial
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_Serial]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_Serial]
GO

CREATE TABLE [dbo].[Sys_Serial] (
  [CfgKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [IntVal] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_Serial] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_Serial
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_Serial] ([CfgKey], [IntVal]) VALUES (N'OID', N'111')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFColumn
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFColumn]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFColumn]
GO

CREATE TABLE [dbo].[Sys_SFColumn] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPKVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrKey] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DataType] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFColumn] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFColumn
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFColumnSln
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFColumnSln]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFColumnSln]
GO

CREATE TABLE [dbo].[Sys_SFColumnSln] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPKVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrKey] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [DataType] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToField] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFColumnSln] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFColumnSln
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFDBSrc
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFDBSrc]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFDBSrc]
GO

CREATE TABLE [dbo].[Sys_SFDBSrc] (
  [No] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBName] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [ConnString] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFDBSrc] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFDBSrc
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFPara
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFPara]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFPara]
GO

CREATE TABLE [dbo].[Sys_SFPara] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPKVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParaKey] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParaName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DataType] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsSys] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exp] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFPara] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFPara
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFProcedure
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFProcedure]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFProcedure]
GO

CREATE TABLE [dbo].[Sys_SFProcedure] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_SFDBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestMethod] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestMethodT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ConnString] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SelectStatement] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [PostDoc] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExpNote] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParamAlia] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [TestParas] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsOfOK] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsOfErr] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Remark] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFProcedure] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFProcedure
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFSearch
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFSearch]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFSearch]
GO

CREATE TABLE [dbo].[Sys_SFSearch] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_SFDBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ResultNum] int  NULL,
  [ConnString] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SelectStatement] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExpNote] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [TestParas] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParamAlia] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestMethod] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestMethodT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [PostDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [JsonNode] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFSearch] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFSearch
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFTable
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFTable]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFTable]
GO

CREATE TABLE [dbo].[Sys_SFTable] (
  [No] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrcTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CodeStruct] int  NULL,
  [RootVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Val] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [TableDesc] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DefVal] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoGenerModel] int  NULL,
  [FK_SFDBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SrcTable] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColumnValue] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ColumnText] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentValue] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SelectStatement] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [PostDoc] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Remark] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestMethod] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FieldNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FieldName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FieldParentNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [JsonNode] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFTable] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFTable
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SFTableDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SFTableDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SFTableDtl]
GO

CREATE TABLE [dbo].[Sys_SFTableDtl] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_SFTable] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [BH] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ParentNo] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[Sys_SFTableDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SFTableDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_SMS
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_SMS]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_SMS]
GO

CREATE TABLE [dbo].[Sys_SMS] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Sender] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendTo] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Mobile] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [MobileSta] int  NULL,
  [MobileInfo] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Email] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmailSta] int  NULL,
  [EmailTitle] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmailDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsRead] int  NULL,
  [IsAlert] int  NULL,
  [WorkID] int  NULL,
  [MsgFlag] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MsgType] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_SMS] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_SMS
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_UserLogLevel
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_UserLogLevel]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_UserLogLevel]
GO

CREATE TABLE [dbo].[Sys_UserLogLevel] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_UserLogLevel] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_UserLogLevel
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_UserLogT
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_UserLogT]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_UserLogT]
GO

CREATE TABLE [dbo].[Sys_UserLogT] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EmpNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [IP] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [LogFlag] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [LevelText] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_UserLogT] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_UserLogT
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_UserLogType
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_UserLogType]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_UserLogType]
GO

CREATE TABLE [dbo].[Sys_UserLogType] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_UserLogType] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_UserLogType
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for Sys_UserRegedit
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_UserRegedit]') AND type IN ('U'))
	DROP TABLE [dbo].[Sys_UserRegedit]
GO

CREATE TABLE [dbo].[Sys_UserRegedit] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [EnsName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Attrs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AttrKey] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [LB] int DEFAULT '0' NULL,
  [CurValue] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CfgKey] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Vals] varchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [GenerSQL] nvarchar(2000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Paras] nvarchar(2000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NumKey] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OrderBy] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OrderWay] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SearchKey] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MVals] nvarchar(2000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsPic] int DEFAULT '0' NULL,
  [DTFrom] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTTo] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSearchKey] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AtPara] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BigDocs] text COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[Sys_UserRegedit] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of Sys_UserRegedit
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[Sys_UserRegedit] ([MyPK], [EnsName], [EmpNo], [Attrs], [FrmID], [AttrKey], [LB], [CurValue], [CfgKey], [FK_Emp], [Vals], [GenerSQL], [Paras], [NumKey], [OrderBy], [OrderWay], [SearchKey], [MVals], [IsPic], [DTFrom], [DTTo], [DTSearchKey], [OrgNo], [AtPara], [BigDocs]) VALUES (N'Flowccs_liping_1', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_10', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_11', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_12', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_2', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'不同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_3', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'请领导斟酌', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_7', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_8', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_liping_9', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_liping', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_1', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_10', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_11', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_12', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_2', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'不同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_3', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'请领导斟酌', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_7', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_8', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_yuwen_9', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_yuwen', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_1', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_10', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_11', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_12', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_2', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'不同意', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_3', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'请领导斟酌', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_7', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_8', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL), (N'Flowccs_zhanghaicheng_9', N'', NULL, NULL, N'', N'', N'0', N'', N'Flow', N'ccs_zhanghaicheng', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_AccepterRole
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_AccepterRole]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_AccepterRole]
GO

CREATE TABLE [dbo].[WF_AccepterRole] (
  [OID] int  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Mode] int  NULL,
  [Tag0] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag3] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag4] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag5] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_AccepterRole] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_AccepterRole
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Auth
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Auth]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Auth]
GO

CREATE TABLE [dbo].[WF_Auth] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Auther] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AutherName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuthType] int  NULL,
  [AutherToEmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AutherToEmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNoT] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [TakeBackDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_Auth] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Auth
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_AutoRpt
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_AutoRpt]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_AutoRpt]
GO

CREATE TABLE [dbo].[WF_AutoRpt] (
  [No] nvarchar(2) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [DTOfExe] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartDT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToEmpOfSQLs] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Dots] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_AutoRpt] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_AutoRpt
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_AutoRptDtl
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_AutoRptDtl]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_AutoRptDtl]
GO

CREATE TABLE [dbo].[WF_AutoRptDtl] (
  [OID] int  NOT NULL,
  [Name] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQLExp] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [UrlExp] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [BeiZhu] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [AutoRptNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_AutoRptDtl] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_AutoRptDtl
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_CCList
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_CCList]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_CCList]
GO

CREATE TABLE [dbo].[WF_CCList] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Title] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Sta] int  NULL,
  [FlowNo] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeIDWork] int  NULL,
  [NodeName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkID] int  NULL,
  [FID] int  NULL,
  [CCTo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCToName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReadDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PFlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PWorkID] int  NULL,
  [InEmpWorks] int  NULL,
  [RecEmpNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecEmpName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Domain] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeIDCC] int  NULL,
  [NodeIDCCName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FK_Flow] nvarchar(5) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_CCList] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_CCList
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_CCRole
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_CCRole]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_CCRole]
GO

CREATE TABLE [dbo].[WF_CCRole] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [NodeID] int  NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCRoleExcType] int  NULL,
  [CCStaWay] int  NULL,
  [EnIDs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [EnIDsT] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2T] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrc] nvarchar(10) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_CCRole] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_CCRole
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_CH
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_CH]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_CH]
GO

CREATE TABLE [dbo].[WF_CH] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [WorkID] int  NULL,
  [FID] int  NULL,
  [Title] nvarchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_FlowT] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [FK_NodeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Sender] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SenderT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_EmpT] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupEmps] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupEmpsNames] nvarchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [GroupEmpsNum] int  NULL,
  [DTFrom] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTTo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_DeptT] varchar(900) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_NY] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTSWay] int  NULL,
  [TimeLimit] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OverMinutes] float(53)  NULL,
  [UseDays] float(53)  NULL,
  [OverDays] float(53)  NULL,
  [CHSta] int  NULL,
  [WeekNum] int  NULL,
  [Points] float(53)  NULL,
  [OrgNo] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_CH] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_CH
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_CHEval
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_CHEval]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_CHEval]
GO

CREATE TABLE [dbo].[WF_CHEval] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Title] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkID] int  NULL,
  [FK_Node] int  NULL,
  [NodeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Rec] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RecName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EvalEmpNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EvalEmpName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EvalCent] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [EvalNote] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_NY] nvarchar(7) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_CHEval] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_CHEval
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_CHNode
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_CHNode]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_CHNode]
GO

CREATE TABLE [dbo].[WF_CHNode] (
  [WorkID] int  NULL,
  [FK_Node] int  NULL,
  [NodeName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_EmpT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EndDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [GT] int  NULL,
  [Scale] float(53)  NULL,
  [TotalScale] float(53)  NULL,
  [ChanZhi] float(53)  NULL,
  [AtPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyPK] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[WF_CHNode] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_CHNode
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Cond
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Cond]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Cond]
GO

CREATE TABLE [dbo].[WF_Cond] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [RefPKVal] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefFlowNo] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [CondType] int  NULL,
  [FK_Flow] varchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [SubFlowNo] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToNodeID] int  NULL,
  [DataFrom] int  NULL,
  [DataFromText] nvarchar(80) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Attr] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrKey] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Operator] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [OperatorValue] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [OperatorValueT] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Note] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_DBSrc] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [JSFX] int  NULL,
  [FrmID] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmName] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SpecOperWay] int  NULL,
  [SpecOperPara] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToNodeName] nvarchar(80) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FK_OperatorT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '=' NULL
)
GO

ALTER TABLE [dbo].[WF_Cond] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Cond
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_Cond] ([MyPK], [RefPKVal], [RefFlowNo], [FK_Node], [CondType], [FK_Flow], [SubFlowNo], [ToNodeID], [DataFrom], [DataFromText], [FK_Attr], [AttrKey], [AttrName], [FK_Operator], [OperatorValue], [OperatorValueT], [Note], [FK_DBSrc], [AtPara], [Idx], [JSFX], [FrmID], [FrmName], [SpecOperWay], [SpecOperPara], [Tag1], [ToNodeName], [FK_OperatorT]) VALUES (N'1312711-4373-81275', N'001_102_103', NULL, N'102', N'2', N'001', NULL, N'103', N'1', N'选择字段', N'ND101_TianShu', N'TianShu', N'天数', N'dayudengyu', N'5', N'未设置', N'表单:[Start Node]字段: [ND101_TianShu天数] [大于等于] [5] ', N'local', N'@EnName=TS.WF.CondFrmNum', N'100', N'0', N'ND101', N'Start Node', N'0', N'', N'', N'总经理审批', N'大于等于'), (N'91136-43815-97814', N'001_102_104', NULL, N'102', N'2', N'001', NULL, N'104', N'1', N'选择字段', N'ND101_TianShu', N'TianShu', N'天数', N'xiaoyu', N'5', N'未设置', N'表单:[Start Node]字段: [ND101_TianShu天数] [小于] [5] ', N'local', N'@EnName=TS.WF.CondFrmNum', N'100', N'0', N'ND101', N'Start Node', N'0', N'', N'', N'HR审批', N'小于')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_DeptFlowSearch
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_DeptFlowSearch]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_DeptFlowSearch]
GO

CREATE TABLE [dbo].[WF_DeptFlowSearch] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_DeptFlowSearch] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_DeptFlowSearch
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Direction
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Direction]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Direction]
GO

CREATE TABLE [dbo].[WF_Direction] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL,
  [Node] int  NULL,
  [ToNode] int  NULL,
  [ToNodeName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [GateWay] int  NULL,
  [Vertices] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FromPort] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToPort] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeType] int  NULL,
  [Des] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[WF_Direction] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Direction
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_Direction] ([MyPK], [FK_Flow], [Node], [ToNode], [ToNodeName], [GateWay], [Vertices], [FromPort], [ToPort], [NodeType], [Des], [Idx]) VALUES (N'001_101_102', N'001', N'101', N'102', N'部门审批', N'0', N'', N'', N'', N'0', N'', N'0'), (N'001_102_103', N'001', N'102', N'103', N'总经理审批', NULL, N'', N'', N'', N'0', N'请假天数大于等于5天', N'0'), (N'001_102_104', N'001', N'102', N'104', N'HR审批', NULL, N'', N'', N'', N'0', N'请假天数小于5天', N'0'), (N'001_103_104', N'001', N'103', N'104', N'HR审批', NULL, N'', N'103-right', N'104-bottom', N'0', N'', N'0'), (N'001_104_105', N'001', N'104', N'105', N'反馈给审批人', NULL, N'', N'', N'', N'0', N'', N'0')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_DirectionStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_DirectionStation]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_DirectionStation]
GO

CREATE TABLE [dbo].[WF_DirectionStation] (
  [FK_Direction] int  NOT NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[WF_DirectionStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_DirectionStation
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_DocTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_DocTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_DocTemplate]
GO

CREATE TABLE [dbo].[WF_DocTemplate] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FilePath] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_DocTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_DocTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Emp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Emp]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Emp]
GO

CREATE TABLE [dbo].[WF_Emp] (
  [No] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [UseSta] int  NULL,
  [Tel] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Stas] nvarchar(3000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Depts] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Msg] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [UserID] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SPass] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Author] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AuthorDate] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [Token] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(3500) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartFlows] text COLLATE Chinese_PRC_CI_AS DEFAULT NULL NULL,
  [Email] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FrmStyle] int DEFAULT '0' NULL,
  [SysLang] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'CH' NULL,
  [SysLangT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT 'CH' NULL,
  [EM_SeverType] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'IMAP' NULL,
  [EM_SeverTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT 'IMAP' NULL,
  [EM_Email] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_Pass] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_IMAP_SeverIP] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_IMAP_Port] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_IMAP_SSL] int DEFAULT '0' NULL,
  [EM_SMTP_SeverIP] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_SMTP_Port] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_SMTP_SSL] int DEFAULT '0' NULL,
  [EM_SMTP_SenderName] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [EM_SMTP_SenderSigner] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_Emp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Emp
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_Emp] ([No], [Name], [UseSta], [Tel], [FK_Dept], [Stas], [Depts], [Msg], [UserID], [OrgNo], [SPass], [Author], [AuthorDate], [Token], [AtPara], [StartFlows], [Email], [FrmStyle], [SysLang], [SysLangT], [EM_SeverType], [EM_SeverTypeT], [EM_Email], [EM_Pass], [EM_IMAP_SeverIP], [EM_IMAP_Port], [EM_IMAP_SSL], [EM_SMTP_SeverIP], [EM_SMTP_Port], [EM_SMTP_SSL], [EM_SMTP_SenderName], [EM_SMTP_SenderSigner]) VALUES (N'100_admin', N'管理员', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'admin', N'管理员', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'ccs_ccs', N'驰骋管理员', NULL, N'', N'', NULL, NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, NULL, N'', N'', N'0', N'CH', N'CH', N'IMAP', N'IMAP', N'', N'', N'', N'', N'0', N'', N'', N'0', N'', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Flow
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Flow]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Flow]
GO

CREATE TABLE [dbo].[WF_Flow] (
  [No] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_FlowSort] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_FlowSortText] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowMark] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEventEntity] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [TitleRole] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [TitleRoleNodes] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsCanStart] int  NULL,
  [IsFullSA] int  NULL,
  [GuestFlowRole] int  NULL,
  [Draft] int  NULL,
  [SysType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tester] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChartType] int  NULL,
  [Idx] int  NULL,
  [Icon] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreateDate] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Creater] varchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsBatchStart] int  NULL,
  [BatchStartFields] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsResetData] int  NULL,
  [IsLoadPriData] int  NULL,
  [IsDBTemplate] int  NULL,
  [IsStartInMobile] int  NULL,
  [IsMD5] int  NULL,
  [IsJM] int  NULL,
  [IsEnableDBVer] int  NULL,
  [PTable] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [BillNoFormat] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [BuessFields] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AdvEmps] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsTruckEnable] int  NULL,
  [IsTimeBaseEnable] int  NULL,
  [IsTableEnable] int  NULL,
  [SubFlowShowType] int  NULL,
  [TrackOrderBy] int  NULL,
  [FlowRunWay] int DEFAULT '0' NULL,
  [WorkModel] int DEFAULT '0' NULL,
  [RunObj] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Note] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RunSQL] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NumOfBill] int DEFAULT '0' NULL,
  [NumOfDtl] int DEFAULT '0' NULL,
  [FlowAppType] int DEFAULT '0' NULL,
  [SDTOfFlowRole] int DEFAULT '0' NULL,
  [SDTOfFlowRoleSQL] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FlowDevModel] int DEFAULT '0' NULL,
  [FrmUrl] nvarchar(150) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DRCtrlType] int DEFAULT '0' NULL,
  [IsToParentNextNode] int DEFAULT '0' NULL,
  [StartLimitRole] int DEFAULT '0' NULL,
  [StartLimitPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartLimitAlert] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartLimitWhen] int DEFAULT '0' NULL,
  [StartGuideWay] int DEFAULT '0' NULL,
  [StartGuideLink] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartGuideLab] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartGuidePara1] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartGuidePara2] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [StartGuidePara3] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Ver] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DevModelType] int DEFAULT '0' NULL,
  [DevModelPara] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AtPara] nvarchar(1000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DataDTSWay] int DEFAULT '0' NULL,
  [DTSDBSrc] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSBTable] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSBTablePK] nvarchar(32) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSSpecNodes] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSTime] int DEFAULT '0' NULL,
  [DTSFields] nvarchar(900) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TestSysPara] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TestFrmPara] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [MyFileH] int DEFAULT '0' NULL,
  [MyFileW] int DEFAULT '0' NULL,
  [MyFileSize] float(53) DEFAULT '0.0' NULL,
  [MyDeptRole] int DEFAULT '0' NULL,
  [PStarter] int DEFAULT '1' NULL,
  [PWorker] int DEFAULT '1' NULL,
  [PCCer] int DEFAULT '1' NULL,
  [PAnyOne] int DEFAULT '0' NULL,
  [PMyDept] int DEFAULT '1' NULL,
  [PPMyDept] int DEFAULT '1' NULL,
  [PPDept] int DEFAULT '1' NULL,
  [PSameDept] int DEFAULT '1' NULL,
  [PSpecDept] int DEFAULT '1' NULL,
  [PSpecDeptExt] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PSpecSta] int DEFAULT '1' NULL,
  [PSpecStaExt] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PSpecGroup] int DEFAULT '1' NULL,
  [PSpecGroupExt] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PSpecEmp] int DEFAULT '1' NULL,
  [PSpecEmpExt] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FK_FlowSortT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DTSWay] int DEFAULT '0' NULL,
  [BatchListCount] int DEFAULT '0' NULL,
  [DeadLineRole] int DEFAULT '0' NULL,
  [DesignTime] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BuessFieldRole] int DEFAULT '0' NULL,
  [BuessFieldNames] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_Flow] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Flow
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_Flow] ([No], [FK_FlowSort], [FK_FlowSortText], [Name], [FlowMark], [FlowEventEntity], [TitleRole], [TitleRoleNodes], [IsCanStart], [IsFullSA], [GuestFlowRole], [Draft], [SysType], [Tester], [ChartType], [Idx], [Icon], [CreateDate], [Creater], [IsBatchStart], [BatchStartFields], [IsResetData], [IsLoadPriData], [IsDBTemplate], [IsStartInMobile], [IsMD5], [IsJM], [IsEnableDBVer], [PTable], [BillNoFormat], [BuessFields], [AdvEmps], [IsTruckEnable], [IsTimeBaseEnable], [IsTableEnable], [SubFlowShowType], [TrackOrderBy], [FlowRunWay], [WorkModel], [RunObj], [Note], [RunSQL], [NumOfBill], [NumOfDtl], [FlowAppType], [SDTOfFlowRole], [SDTOfFlowRoleSQL], [FlowDevModel], [FrmUrl], [DRCtrlType], [IsToParentNextNode], [StartLimitRole], [StartLimitPara], [StartLimitAlert], [StartLimitWhen], [StartGuideWay], [StartGuideLink], [StartGuideLab], [StartGuidePara1], [StartGuidePara2], [StartGuidePara3], [Ver], [OrgNo], [DevModelType], [DevModelPara], [AtPara], [DataDTSWay], [DTSDBSrc], [DTSBTable], [DTSBTablePK], [DTSSpecNodes], [DTSTime], [DTSFields], [TestSysPara], [TestFrmPara], [MyFileName], [MyFilePath], [MyFileExt], [WebPath], [MyFileH], [MyFileW], [MyFileSize], [MyDeptRole], [PStarter], [PWorker], [PCCer], [PAnyOne], [PMyDept], [PPMyDept], [PPDept], [PSameDept], [PSpecDept], [PSpecDeptExt], [PSpecSta], [PSpecStaExt], [PSpecGroup], [PSpecGroupExt], [PSpecEmp], [PSpecEmpExt], [FK_FlowSortT], [DTSWay], [BatchListCount], [DeadLineRole], [DesignTime], [BuessFieldRole], [BuessFieldNames]) VALUES (N'001', N'1001', N'', N'请假流程-我的极简流程', N'', N'', N'', N'', N'1', N'0', N'0', N'0', N'', N'ccs', N'1', N'0', N'icon-plane', N'2024-08-21 16:59', N'ccs', N'0', N'', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'ND1Rpt', N'', N'', N'', N'1', N'1', N'1', N'0', N'0', N'0', N'0', N'', N'', N'', N'0', N'0', N'0', N'0', N'', N'1', N'ND101', N'0', N'0', N'0', N'', N'', N'0', N'0', N'', N'', N'', N'', N'', N'2024-08-21 17:16:14', N'ccs', N'0', N'', N'@FrmPK=@PushMsgs_AutoNum=10@BuessFields=', N'0', N'', N'', N'', N'', N'0', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'1', N'1', N'1', N'0', N'1', N'1', N'1', N'1', N'1', N'', N'1', N'', N'1', N'', N'1', N'', N'', NULL, NULL, NULL, NULL, NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FlowOrg
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FlowOrg]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FlowOrg]
GO

CREATE TABLE [dbo].[WF_FlowOrg] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_FlowOrg] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FlowOrg
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FlowSort
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FlowSort]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FlowSort]
GO

CREATE TABLE [dbo].[WF_FlowSort] (
  [No] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ParentNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShortName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [Domain] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [DirType] int  NULL,
  [MobileColorType] int  NULL,
  [WebHost] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TokenPiv] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TokenPublie] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CallBack] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [RequestMethod] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'POST' NULL,
  [RequestMethodT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT 'POST' NULL,
  [ParaDTModel] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '1' NULL,
  [ParaDTModelT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '1' NULL,
  [CallMaxNum] int DEFAULT '5' NULL,
  [ApiParas] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ApiNote] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_FlowSort] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FlowSort
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_FlowSort] ([No], [ParentNo], [Name], [ShortName], [OrgNo], [Domain], [Idx], [DirType], [MobileColorType], [WebHost], [TokenPiv], [TokenPublie], [CallBack], [RequestMethod], [RequestMethodT], [ParaDTModel], [ParaDTModelT], [CallMaxNum], [ApiParas], [ApiNote], [Icon]) VALUES (N'100', N'0', N'SAAS流程树', NULL, N'100', NULL, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'1001', N'ccs', N'行政办公', NULL, N'ccs', NULL, N'2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'1002', N'ccs', N'财务流程', NULL, N'ccs', NULL, N'3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'1003', N'ccs', N'项目管理', NULL, N'ccs', NULL, N'4', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'1004', N'ccs', N'其他流程', NULL, N'ccs', NULL, N'5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (N'ccs', N'100', N'驰骋公司', NULL, N'ccs', NULL, N'1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FlowTab
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FlowTab]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FlowTab]
GO

CREATE TABLE [dbo].[WF_FlowTab] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(4) COLLATE Chinese_PRC_CI_AS  NULL,
  [Mark] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tip] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [UrlExt] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Icon] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[WF_FlowTab] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FlowTab
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FrmNode
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FrmNode]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FrmNode]
GO

CREATE TABLE [dbo].[WF_FrmNode] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Frm] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmSln] int  NULL,
  [FK_Flow] varchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmType] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [IsPrint] int DEFAULT '0' NULL,
  [IsEnableLoadData] int DEFAULT '0' NULL,
  [IsDefaultOpen] int DEFAULT '0' NULL,
  [IsCloseEtcFrm] int DEFAULT '0' NULL,
  [IsEnableFWC] int DEFAULT '0' NULL,
  [SFSta] int DEFAULT '0' NULL,
  [Idx] int DEFAULT '0' NULL,
  [WhoIsPK] int DEFAULT '0' NULL,
  [Is1ToN] int DEFAULT '0' NULL,
  [HuiZong] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FrmEnableRole] int DEFAULT '0' NULL,
  [FrmEnableExp] nvarchar(900) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TempleteFile] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsEnable] int DEFAULT '1' NULL,
  [FrmNameShow] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CheckField] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BillNoField] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BillNoFieldText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CheckFieldText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_FrmNode] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FrmNode
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_FrmNode] ([MyPK], [FK_Node], [FK_Frm], [FrmSln], [FK_Flow], [FrmType], [IsPrint], [IsEnableLoadData], [IsDefaultOpen], [IsCloseEtcFrm], [IsEnableFWC], [SFSta], [Idx], [WhoIsPK], [Is1ToN], [HuiZong], [FrmEnableRole], [FrmEnableExp], [TempleteFile], [IsEnable], [FrmNameShow], [CheckField], [BillNoField], [BillNoFieldText], [CheckFieldText]) VALUES (N'ND101_102_001', N'102', N'ND101', N'1', N'001', N'0', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'1', N'', N'', N'', N'', N''), (N'ND101_103_001', N'103', N'ND101', N'1', N'001', N'0', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'1', N'', N'', N'', N'', N''), (N'ND101_104_001', N'104', N'ND101', N'1', N'001', N'0', N'0', N'0', N'0', N'0', N'1', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'1', N'', N'', N'', N'', N''), (N'ND101_105_001', N'105', N'ND101', N'1', N'001', N'0', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'0', N'', N'0', N'', N'', N'1', N'', N'', N'', N'', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FrmNodeFieldRemove
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FrmNodeFieldRemove]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FrmNodeFieldRemove]
GO

CREATE TABLE [dbo].[WF_FrmNodeFieldRemove] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeID] int  NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [Fields] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExpType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Exp] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_FrmNodeFieldRemove] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FrmNodeFieldRemove
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_FrmOrg
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_FrmOrg]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_FrmOrg]
GO

CREATE TABLE [dbo].[WF_FrmOrg] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [OrgNo] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_FrmOrg] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_FrmOrg
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_GenerWorkerlist
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_GenerWorkerlist]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_GenerWorkerlist]
GO

CREATE TABLE [dbo].[WF_GenerWorkerlist] (
  [WorkID] int  NOT NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NOT NULL,
  [FID] int  NULL,
  [EmpName] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [StaNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTOfWarning] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnable] int  NULL,
  [IsRead] int  NULL,
  [IsPass] int  NULL,
  [WhoExeIt] int  NULL,
  [Sender] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [PRI] int  NULL,
  [DTOfHungup] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DTOfUnHungup] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [GuestNo] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [GuestName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_GenerWorkerlist] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_GenerWorkerlist
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_GenerWorkerlist] ([WorkID], [FK_Emp], [FK_Node], [FID], [EmpName], [NodeName], [FK_Flow], [StaNo], [FK_Dept], [SDT], [DTOfWarning], [RDT], [CDT], [IsEnable], [IsRead], [IsPass], [WhoExeIt], [Sender], [PRI], [DTOfHungup], [DTOfUnHungup], [GuestNo], [GuestName], [Idx], [AtPara]) VALUES (N'1767884027', N'ccs', N'101', N'0', N'驰骋管理员', N'申请人', N'001', N'', N'ccs', N'2024-08-21 17:16', N'2024-08-21 17:16', N'2024-08-21 17:16:58', N'2024-08-21 17:16', N'1', N'1', N'0', N'0', N'', N'1', N'', N'', N'', N'', N'1', N'@DeptName=驰骋公司')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_GenerWorkFlow
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_GenerWorkFlow]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_GenerWorkFlow]
GO

CREATE TABLE [dbo].[WF_GenerWorkFlow] (
  [WorkID] int  NOT NULL,
  [FID] int  NULL,
  [FK_FlowSort] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SysType] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [WFSta] int  NULL,
  [WFState] int  NULL,
  [Starter] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StarterName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Sender] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [HungupTime] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [NodeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PRI] int  NULL,
  [SDTOfNode] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDTOfFlow] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDTOfFlowWarning] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PFlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PWorkID] int  NULL,
  [PNodeID] int  NULL,
  [PFID] int  NULL,
  [PEmp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [GuestNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [GuestName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [BillNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [TodoEmps] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [TodoEmpsNum] int  NULL,
  [TaskSta] int  NULL,
  [AtPara] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Emps] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [GUID] nvarchar(36) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_NY] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [WeekNum] int  NULL,
  [TSpan] int  NULL,
  [TodoSta] int  NULL,
  [Domain] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrjNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrjName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNote] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_GenerWorkFlow] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_GenerWorkFlow
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_GenerWorkFlow] ([WorkID], [FID], [FK_FlowSort], [SysType], [FK_Flow], [FlowName], [Title], [WFSta], [WFState], [Starter], [StarterName], [Sender], [RDT], [HungupTime], [SendDT], [FK_Node], [NodeName], [FK_Dept], [DeptName], [PRI], [SDTOfNode], [SDTOfFlow], [SDTOfFlowWarning], [PFlowNo], [PWorkID], [PNodeID], [PFID], [PEmp], [GuestNo], [GuestName], [BillNo], [TodoEmps], [TodoEmpsNum], [TaskSta], [AtPara], [Emps], [GUID], [FK_NY], [WeekNum], [TSpan], [TodoSta], [Domain], [PrjNo], [PrjName], [OrgNo], [FlowNote]) VALUES (N'1767884027', N'0', N'1001', N'', N'001', N'请假流程-我的极简流程', N'驰骋公司 - 驰骋管理员 在 2024-08-21 17:16 发起', N'2', N'0', N'ccs', N'驰骋管理员', N'', N'2024-08-21 17:16:58', N'', N'2024-08-21 17:16', N'101', N'申请人', N'ccs', N'驰骋公司', N'1', N'2024-08-21 17:16', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'', N'', N'', N'0', N'0', N'@CreateRDT=2024-08-21 17:16:58', N'', N'', N'2024-08', N'0', N'0', N'0', NULL, N'', N'', N'ccs', N''), (N'2060920859', N'0', N'1001', N'', N'001', N'请假流程-我的极简流程', N'驰骋公司 - 驰骋管理员 在 2024-08-21 17:12 发起', N'1', N'3', N'ccs', N'驰骋管理员', N'ccs,驰骋管理员;', N'2024-08-21 17:12:57', N'', N'2024-08-21 17:16', N'105', N'反馈给审批人', N'ccs', N'驰骋公司', N'1', N'2024-08-21 17:15', N'', N'', N'', N'0', N'0', N'0', N'', N'', N'', N'', N'ccs,驰骋管理员;', N'1', N'0', N'@ScripNodeID=0@HungupCheckMsg=@LastTruckID=616156973@ScripMsg=@ThreadCount=0@CreateRDT=2024-08-21 17:12:12@HungupSta=-1@IsCanBatch=0', N'@ccs,驰骋管理员@liping,李萍@yuwen,钰雯@zhanghaicheng,张海成@', N'', N'2024-08', N'0', N'0', N'0', N'', N'', N'', N'ccs', N'同意')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_LabNote
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_LabNote]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_LabNote]
GO

CREATE TABLE [dbo].[WF_LabNote] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [X] int  NULL,
  [Y] int  NULL
)
GO

ALTER TABLE [dbo].[WF_LabNote] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_LabNote
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Node
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Node]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Node]
GO

CREATE TABLE [dbo].[WF_Node] (
  [NodeID] int  NOT NULL,
  [Mark] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] varchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [WhoExeIt] int  NULL,
  [ReadReceipts] int  NULL,
  [DeliveryParas] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CancelRole] int  NULL,
  [CancelDisWhenRead] int  NULL,
  [IsOpenOver] int  NULL,
  [IsSendDraftSubFlow] int  NULL,
  [IsResetAccepter] int  NULL,
  [IsGuestNode] int  NULL,
  [IsYouLiTai] int  NULL,
  [FocusField] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FWCSta] int  NULL,
  [FWCAth] int  NULL,
  [DeliveryWay] int  NULL,
  [SelfParas] varchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [Step] int  NULL,
  [Tip] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeType] int  NULL,
  [RunModel] int  NULL,
  [PassRate] float(53)  NULL,
  [ThreadIsCanDel] int  NULL,
  [ThreadIsCanAdd] int  NULL,
  [ThreadIsCanShift] int  NULL,
  [USSWorkIDRole] int  NULL,
  [IsSendBackNode] int  NULL,
  [AutoJumpRole0] int  NULL,
  [AutoJumpRole1] int  NULL,
  [AutoJumpRole2] int  NULL,
  [AutoJumpRole3] int  NULL,
  [WhenNoWorker] int  NULL,
  [AutoJumpExp] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SkipTime] int  NULL,
  [SendLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendJS] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [DelayedSendLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DelayedSendEnable] int  NULL,
  [SaveLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SaveEnable] int  NULL,
  [CCLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCRole] int  NULL,
  [QRCodeLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [QRCodeRole] int  NULL,
  [ShiftLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShiftEnable] int  NULL,
  [DelLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DelEnable] int  NULL,
  [EndFlowLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [EndFlowEnable] int  NULL,
  [ShowParentFormLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShowParentFormEnable] int  NULL,
  [OfficeBtnLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [OfficeBtnEnable] int  NULL,
  [OfficeFileType] int  NULL,
  [OfficeBtnLocal] int  NULL,
  [OfficeTrackLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DownVSTOLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DownVSTOEnable] int  NULL,
  [OfficeTrackEnalbe] int  NULL,
  [DownGovLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [DownGovEnable] int  NULL,
  [KKViewLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [KKViewEnable] int  NULL,
  [TrackLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [TrackEnable] int  NULL,
  [HungLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [HungEnable] int  NULL,
  [SearchLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SearchEnable] int  NULL,
  [TCLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [TCEnable] int  NULL,
  [FrmDBVerLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmDBVerEnable] int  NULL,
  [FrmDBRemarkLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmDBRemarkEnable] int  NULL,
  [PRILab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PRIEnable] int  NULL,
  [CHLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CHRole] int  NULL,
  [AllotLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AllotEnable] int  NULL,
  [FocusLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FocusEnable] int  NULL,
  [ConfirmLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ConfirmEnable] int  NULL,
  [ListLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ListEnable] int  NULL,
  [BatchLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [BatchEnable] int  NULL,
  [NoteLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NoteEnable] int  NULL,
  [HelpLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [HelpRole] int  NULL,
  [ScripLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ScripRole] int  NULL,
  [FlowBBSLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowBBSRole] int  NULL,
  [IMLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IMEnable] int  NULL,
  [NextLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [NextRole] int  NULL,
  [ThreadLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ThreadEnable] int  NULL,
  [ThreadKillRole] int  NULL,
  [JumpWayLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [JumpWay] int  NULL,
  [JumpToNodes] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChangeDeptLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ChangeDeptEnable] int  NULL,
  [SubmitSF] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SubmitSFEnable] int  NULL,
  [ShowParentFormEnableMyView] int  NULL,
  [TrackEnableMyView] int  NULL,
  [FrmDBVerMyView] int  NULL,
  [FrmDBRemarkEnableMyView] int  NULL,
  [PressLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PressEnable] int  NULL,
  [RollbackLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [RollbackEnable] int  NULL,
  [ShowParentFormEnableMyCC] int  NULL,
  [TrackEnableMyCC] int  NULL,
  [FrmDBVerMyCC] int  NULL,
  [ReturnLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReturnRole] int  NULL,
  [ReturnAlert] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsBackTracking] int  NULL,
  [IsBackResetAccepter] int  NULL,
  [IsKillEtcThread] int  NULL,
  [ReturnCHEnable] int  NULL,
  [ReturnOneNodeRole] int  NULL,
  [ReturnField] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReturnReasonsItems] nvarchar(999) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintHtmlLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintHtmlEnable] int  NULL,
  [PrintHtmlMyView] int  NULL,
  [PrintHtmlMyCC] int  NULL,
  [PrintPDFLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintPDFEnable] int  NULL,
  [PrintPDFMyView] int  NULL,
  [PrintPDFMyCC] int  NULL,
  [PrintPDFModle] int  NULL,
  [ShuiYinModle] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintZipLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintZipEnable] int  NULL,
  [PrintZipMyView] int  NULL,
  [PrintZipMyCC] int  NULL,
  [PrintDocLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PrintDocEnable] int  NULL,
  [HuiQianLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [HuiQianRole] int  NULL,
  [AddLeaderLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AddLeaderEnable] int  NULL,
  [HuiQianLeaderRole] int  NULL,
  [AtPara] varchar(4000) COLLATE Chinese_PRC_CI_AS  NULL,
  [TAlertRole] int  NULL,
  [TAlertWay] int  NULL,
  [WAlertRole] int  NULL,
  [WAlertWay] int  NULL,
  [TCent] float(53)  NULL,
  [CHWay] int  NULL,
  [IsEval] int  NULL,
  [OutTimeDeal] int  NULL,
  [FWCLab] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '审核信息' NULL,
  [FWCType] int DEFAULT '0' NULL,
  [FWCShowModel] int DEFAULT '0' NULL,
  [FWCTimeModel] int DEFAULT '0' NULL,
  [FWCNodeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FWCOpLabel] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '审核' NULL,
  [FWCDefInfo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SigantureEnabel] int DEFAULT '0' NULL,
  [IsChangeFWCTime] int DEFAULT '0' NULL,
  [FWCIsFullInfo] int DEFAULT '1' NULL,
  [FWCFields] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FWCVer] int DEFAULT '1' NULL,
  [NodeFrmID] varchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CheckField] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CheckFieldText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FWCView] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FWCOrderModel] int DEFAULT '0' NULL,
  [FWCMsgShow] int DEFAULT '0' NULL,
  [FWC_H] float(53) DEFAULT '300.0' NULL,
  [FWCIsShowReturnMsg] int DEFAULT '0' NULL,
  [FWCTrackEnable] int DEFAULT '1' NULL,
  [FWCListEnable] int DEFAULT '1' NULL,
  [FWCIsShowAllStep] int DEFAULT '0' NULL,
  [FWCIsShowTruck] int DEFAULT '0' NULL,
  [ICON] nvarchar(70) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeWorkType] int DEFAULT '0' NULL,
  [SubThreadType] int DEFAULT '0' NULL,
  [FrmAttr] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FlowNo] int DEFAULT '0' NULL,
  [UIWidth] int DEFAULT '140' NULL,
  [UIHeight] int DEFAULT '30' NULL,
  [UIAngle] int DEFAULT '0' NULL,
  [SFSta] int DEFAULT '0' NULL,
  [SubFlowX] int DEFAULT '0' NULL,
  [SubFlowY] int DEFAULT '0' NULL,
  [TimeLimit] float(53) DEFAULT '2.0' NULL,
  [TWay] int DEFAULT '0' NULL,
  [WarningDay] float(53) DEFAULT '1.0' NULL,
  [DoOutTime] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DoOutTimeCond] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [Doc] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeFrmIDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CCWriteTo] int DEFAULT '0' NULL,
  [SaveModel] int DEFAULT '0' NULL,
  [IsCanDelFlow] int DEFAULT '0' NULL,
  [TodolistModel] int DEFAULT '0' NULL,
  [TeamLeaderConfirmRole] int DEFAULT '0' NULL,
  [TeamLeaderConfirmDoc] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsHandOver] int DEFAULT '0' NULL,
  [BlockModel] int DEFAULT '0' NULL,
  [BlockExp] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [BlockAlert] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CondModel] int DEFAULT '0' NULL,
  [BatchRole] int DEFAULT '0' NULL,
  [FormType] int DEFAULT '1' NULL,
  [FormUrl] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT 'http://' NULL,
  [TurnToDeal] int DEFAULT '0' NULL,
  [TurnToDealDoc] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodePosType] int DEFAULT '0' NULL,
  [HisStas] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HisDeptStrs] nvarchar(600) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HisToNDs] nvarchar(80) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HisBillIDs] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [HisSubFlows] nvarchar(30) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [PTable] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [GroupStaNDs] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [X] int DEFAULT '0' NULL,
  [Y] int DEFAULT '0' NULL,
  [RefOneFrmTreeType] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CutEnderEmp] int DEFAULT '0' NULL,
  [SF_H] float(53) DEFAULT '300.0' NULL,
  [SFLab] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '子流程' NULL,
  [SFShowModel] int DEFAULT '0' NULL,
  [SFShowCtrl] int DEFAULT '0' NULL,
  [AllSubFlowOverRole] int DEFAULT '0' NULL,
  [SFCaption] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '启动子流程' NULL,
  [SFDefInfo] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SFFields] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SFOpenType] int DEFAULT '0' NULL,
  [FrmTrackLab] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '轨迹' NULL,
  [FrmTrackSta] int DEFAULT '0' NULL,
  [FrmTrack_H] float(53) DEFAULT '300.0' NULL,
  [FTCLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '流转自定义' NULL,
  [FTCSta] int DEFAULT '0' NULL,
  [FTCWorkModel] int DEFAULT '0' NULL,
  [FTC_H] float(53) DEFAULT '300.0' NULL,
  [SelectorModel] int DEFAULT '0' NULL,
  [FK_SQLTemplate] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [FK_SQLTemplateText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsAutoLoadEmps] int DEFAULT '1' NULL,
  [IsSimpleSelector] int DEFAULT '0' NULL,
  [IsEnableDeptRange] int DEFAULT '0' NULL,
  [IsEnableStaRange] int DEFAULT '0' NULL,
  [SelectorP1] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SelectorP2] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SelectorP3] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SelectorP4] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsTask] int DEFAULT '1' NULL,
  [IsExpSender] int DEFAULT '1' NULL,
  [IsRM] int DEFAULT '1' NULL,
  [NodeStations] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeStationsT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeEmps] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeEmpsT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeDepts] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [NodeDeptsT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ARDeptModel] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ARStaModel] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ShenFenModel] int DEFAULT '0' NULL,
  [IsShowReturnNodeInToolbar] int DEFAULT '0' NULL,
  [StartLimitRole] int DEFAULT '0' NULL,
  [NodeFrmRef] int DEFAULT '0' NULL,
  [QiangBanSendAfterRole] int DEFAULT '0' NULL,
  [GenerWorkerListDelRole] int DEFAULT '0' NULL,
  [ShenFenVal] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [XieZuoOverRole] int DEFAULT '0' NULL,
  [XieZuoOverRate] int DEFAULT '0' NULL,
  [TeamleaderConfirm] int DEFAULT '0' NULL,
  [TeamleaderCfmVal] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CancelNodes] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [AiLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT 'Ai助理' NULL,
  [AiAssistant] int DEFAULT '0' NULL,
  [TZWorkerLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '调整未来处理人' NULL,
  [TZWorkerEnable] int DEFAULT '1' NULL,
  [TZWorkerRole] int DEFAULT '0' NULL,
  [PreplaceWokerLab] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '预置处理人' NULL,
  [PreplaceWokerRole] int DEFAULT '0' NULL,
  [ReturnNodes] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TeamReturner] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DownGovPDFLab] nvarchar(50) COLLATE Chinese_PRC_CI_AS DEFAULT '下载公文正文(pdf)' NULL,
  [DownGovPDFEnable] int DEFAULT '0' NULL,
  [ReturnNodesT] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [CancelNodesT] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [JumpToNodesT] nvarchar(300) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [TimeShowRole] int DEFAULT '1' NULL,
  [CheckFieldT] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_Node] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Node
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_Node] ([NodeID], [Mark], [FK_Flow], [FlowName], [Name], [WhoExeIt], [ReadReceipts], [DeliveryParas], [CancelRole], [CancelDisWhenRead], [IsOpenOver], [IsSendDraftSubFlow], [IsResetAccepter], [IsGuestNode], [IsYouLiTai], [FocusField], [FWCSta], [FWCAth], [DeliveryWay], [SelfParas], [Step], [Tip], [NodeType], [RunModel], [PassRate], [ThreadIsCanDel], [ThreadIsCanAdd], [ThreadIsCanShift], [USSWorkIDRole], [IsSendBackNode], [AutoJumpRole0], [AutoJumpRole1], [AutoJumpRole2], [AutoJumpRole3], [WhenNoWorker], [AutoJumpExp], [SkipTime], [SendLab], [SendJS], [DelayedSendLab], [DelayedSendEnable], [SaveLab], [SaveEnable], [CCLab], [CCRole], [QRCodeLab], [QRCodeRole], [ShiftLab], [ShiftEnable], [DelLab], [DelEnable], [EndFlowLab], [EndFlowEnable], [ShowParentFormLab], [ShowParentFormEnable], [OfficeBtnLab], [OfficeBtnEnable], [OfficeFileType], [OfficeBtnLocal], [OfficeTrackLab], [DownVSTOLab], [DownVSTOEnable], [OfficeTrackEnalbe], [DownGovLab], [DownGovEnable], [KKViewLab], [KKViewEnable], [TrackLab], [TrackEnable], [HungLab], [HungEnable], [SearchLab], [SearchEnable], [TCLab], [TCEnable], [FrmDBVerLab], [FrmDBVerEnable], [FrmDBRemarkLab], [FrmDBRemarkEnable], [PRILab], [PRIEnable], [CHLab], [CHRole], [AllotLab], [AllotEnable], [FocusLab], [FocusEnable], [ConfirmLab], [ConfirmEnable], [ListLab], [ListEnable], [BatchLab], [BatchEnable], [NoteLab], [NoteEnable], [HelpLab], [HelpRole], [ScripLab], [ScripRole], [FlowBBSLab], [FlowBBSRole], [IMLab], [IMEnable], [NextLab], [NextRole], [ThreadLab], [ThreadEnable], [ThreadKillRole], [JumpWayLab], [JumpWay], [JumpToNodes], [ChangeDeptLab], [ChangeDeptEnable], [SubmitSF], [SubmitSFEnable], [ShowParentFormEnableMyView], [TrackEnableMyView], [FrmDBVerMyView], [FrmDBRemarkEnableMyView], [PressLab], [PressEnable], [RollbackLab], [RollbackEnable], [ShowParentFormEnableMyCC], [TrackEnableMyCC], [FrmDBVerMyCC], [ReturnLab], [ReturnRole], [ReturnAlert], [IsBackTracking], [IsBackResetAccepter], [IsKillEtcThread], [ReturnCHEnable], [ReturnOneNodeRole], [ReturnField], [ReturnReasonsItems], [PrintHtmlLab], [PrintHtmlEnable], [PrintHtmlMyView], [PrintHtmlMyCC], [PrintPDFLab], [PrintPDFEnable], [PrintPDFMyView], [PrintPDFMyCC], [PrintPDFModle], [ShuiYinModle], [PrintZipLab], [PrintZipEnable], [PrintZipMyView], [PrintZipMyCC], [PrintDocLab], [PrintDocEnable], [HuiQianLab], [HuiQianRole], [AddLeaderLab], [AddLeaderEnable], [HuiQianLeaderRole], [AtPara], [TAlertRole], [TAlertWay], [WAlertRole], [WAlertWay], [TCent], [CHWay], [IsEval], [OutTimeDeal], [FWCLab], [FWCType], [FWCShowModel], [FWCTimeModel], [FWCNodeName], [FWCOpLabel], [FWCDefInfo], [SigantureEnabel], [IsChangeFWCTime], [FWCIsFullInfo], [FWCFields], [FWCVer], [NodeFrmID], [CheckField], [CheckFieldText], [FWCView], [FWCOrderModel], [FWCMsgShow], [FWC_H], [FWCIsShowReturnMsg], [FWCTrackEnable], [FWCListEnable], [FWCIsShowAllStep], [FWCIsShowTruck], [ICON], [NodeWorkType], [SubThreadType], [FrmAttr], [FlowNo], [UIWidth], [UIHeight], [UIAngle], [SFSta], [SubFlowX], [SubFlowY], [TimeLimit], [TWay], [WarningDay], [DoOutTime], [DoOutTimeCond], [Doc], [NodeFrmIDT], [CCWriteTo], [SaveModel], [IsCanDelFlow], [TodolistModel], [TeamLeaderConfirmRole], [TeamLeaderConfirmDoc], [IsHandOver], [BlockModel], [BlockExp], [BlockAlert], [CondModel], [BatchRole], [FormType], [FormUrl], [TurnToDeal], [TurnToDealDoc], [NodePosType], [HisStas], [HisDeptStrs], [HisToNDs], [HisBillIDs], [HisSubFlows], [PTable], [GroupStaNDs], [X], [Y], [RefOneFrmTreeType], [CutEnderEmp], [SF_H], [SFLab], [SFShowModel], [SFShowCtrl], [AllSubFlowOverRole], [SFCaption], [SFDefInfo], [SFFields], [SFOpenType], [FrmTrackLab], [FrmTrackSta], [FrmTrack_H], [FTCLab], [FTCSta], [FTCWorkModel], [FTC_H], [SelectorModel], [FK_SQLTemplate], [FK_SQLTemplateText], [IsAutoLoadEmps], [IsSimpleSelector], [IsEnableDeptRange], [IsEnableStaRange], [SelectorP1], [SelectorP2], [SelectorP3], [SelectorP4], [IsTask], [IsExpSender], [IsRM], [NodeStations], [NodeStationsT], [NodeEmps], [NodeEmpsT], [NodeDepts], [NodeDeptsT], [ARDeptModel], [ARStaModel], [ShenFenModel], [IsShowReturnNodeInToolbar], [StartLimitRole], [NodeFrmRef], [QiangBanSendAfterRole], [GenerWorkerListDelRole], [ShenFenVal], [XieZuoOverRole], [XieZuoOverRate], [TeamleaderConfirm], [TeamleaderCfmVal], [CancelNodes], [AiLab], [AiAssistant], [TZWorkerLab], [TZWorkerEnable], [TZWorkerRole], [PreplaceWokerLab], [PreplaceWokerRole], [ReturnNodes], [TeamReturner], [DownGovPDFLab], [DownGovPDFEnable], [ReturnNodesT], [CancelNodesT], [JumpToNodesT], [TimeShowRole], [CheckFieldT]) VALUES (N'101', N'00101', N'001', N'请假流程-我的极简流程', N'申请人', N'0', N'0', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'4', N'', N'1', N'', N'0', N'0', N'100', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'发送', N'', N'延期发送', N'0', N'保存', N'1', N'抄送', N'0', N'二维码', N'0', N'移交', N'0', N'删除', N'1', N'结束流程', N'0', N'查看父流程', N'0', N'打开公文', N'0', N'0', N'0', N'公文版本', N'下载VSTO插件', N'0', N'0', N'下载公文正文(word)', N'0', N'KK在线预览', N'0', N'轨迹', N'1', N'挂起', N'0', N'查询', N'0', N'流转自定义', N'0', N'数据版本', N'0', N'数据批阅', N'0', N'重要性', N'0', N'节点时限', N'0', N'分配', N'0', N'关注', N'0', N'确认', N'0', N'列表', N'1', N'批量审核', N'0', N'备注', N'0', N'帮助提示', N'0', N'小纸条', N'0', N'评论', N'0', N'即时通讯', N'0', N'下一条', N'0', N'子线程', N'0', N'0', N'跳转', N'0', N'', N'切换部门', N'0', N'提交身份', N'0', N'0', N'1', N'0', N'0', N'催办', N'1', N'回滚', N'1', N'0', N'1', N'0', N'退回', N'0', N'', N'1', N'0', N'0', N'0', N'0', N'', N'', N'打印Html', N'0', N'0', N'0', N'打印pdf', N'0', N'0', N'0', N'0', N'', N'打包下载', N'0', N'0', N'0', N'打印单据', N'0', N'会签', N'0', N'加主持人', N'0', N'0', N'@X=-180@IsYouLiTai=0@PushMsgs_AutoNum=2', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'审核信息', N'0', N'0', N'0', N'', N'审核', N'', N'0', N'0', N'1', N'', N'0', N'ND101', N'', N'', N'', N'0', N'0', N'0', N'0', N'1', N'1', N'0', N'0', N'前台', N'1', N'0', N'', N'0', N'140', N'30', N'0', N'0', N'0', N'0', N'2', N'0', N'1', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'', N'', N'2', N'0', N'0', N'http://', N'0', N'', N'0', N'', N'', N'@102', N'', N'', N'', N'@101@102@105', N'-180', N'25', N'', N'0', N'300', N'子流程', N'0', N'0', N'0', N'启动子流程', N'', N'', N'0', N'轨迹', N'0', N'300', N'流转自定义', N'0', N'0', N'300', N'5', N'', N'', N'1', N'0', N'0', N'0', N'', N'', N'', N'', N'1', N'1', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N'0', NULL, N'0', N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'Ai助理', N'0', N'调整未来处理人', N'1', N'0', N'预置处理人', N'0', NULL, N'', N'下载公文正文(pdf)', N'0', N'', N'', N'', NULL, NULL), (N'102', N'00102', N'001', N'请假流程-我的极简流程', N'部门审批', N'0', N'0', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'0', N'4', N'', N'2', N'', N'0', N'0', N'100', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'发送', N'', N'延期发送', N'0', N'保存', N'1', N'抄送', N'0', N'二维码', N'0', N'移交', N'0', N'删除', N'0', N'结束流程', N'0', N'查看父流程', N'0', N'打开公文', N'0', N'0', N'0', N'公文版本', N'下载VSTO插件', N'0', N'0', N'下载公文正文(word)', N'0', N'KK在线预览', N'0', N'轨迹', N'1', N'挂起', N'0', N'查询', N'0', N'流转自定义', N'0', N'数据版本', N'0', N'数据批阅', N'0', N'重要性', N'0', N'节点时限', N'0', N'分配', N'0', N'关注', N'0', N'确认', N'0', N'列表', N'1', N'批量审核', N'0', N'备注', N'0', N'帮助提示', N'0', N'小纸条', N'0', N'评论', N'0', N'即时通讯', N'0', N'下一条', N'0', N'子线程', N'0', N'0', N'跳转', N'0', N'', N'切换部门', N'0', N'提交身份', N'0', N'0', N'1', N'0', N'0', N'催办', N'1', N'回滚', N'1', N'0', N'1', N'0', N'退回', N'2', N'', N'1', N'0', N'0', N'0', N'0', N'', N'', N'打印Html', N'0', N'0', N'0', N'打印pdf', N'0', N'0', N'0', N'0', N'', N'打包下载', N'0', N'0', N'0', N'打印单据', N'0', N'会签', N'0', N'加主持人', N'0', N'0', N'@IsYouLiTai=0@PushMsgs_AutoNum=2@X=50', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'审核信息', N'0', N'0', N'0', N'', N'审核', N'同意', N'0', N'0', N'1', N'', N'0', N'ND101', N'', N'', N'', N'0', N'0', N'0', N'0', N'1', N'1', N'0', N'0', N'审核', N'0', N'0', N'', N'0', N'140', N'30', N'0', N'0', N'0', N'0', N'2', N'0', N'1', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'', N'', N'0', N'0', N'0', N'http://', N'0', N'', N'1', N'', N'', N'@103@104', N'', N'', N'', N'@101@102@105', N'50', N'105', N'', N'0', N'300', N'子流程', N'0', N'0', N'0', N'启动子流程', N'', N'', N'0', N'轨迹', N'0', N'300', N'流转自定义', N'0', N'0', N'300', N'5', N'', N'', N'1', N'0', N'0', N'0', N'', N'', N'', N'', N'1', N'1', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N'0', NULL, N'0', N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'Ai助理', N'0', N'调整未来处理人', N'1', N'0', N'预置处理人', N'0', NULL, N'', N'下载公文正文(pdf)', N'0', N'', N'', N'', NULL, NULL), (N'103', N'103', N'001', N'请假流程-我的极简流程', N'总经理审批', N'0', N'0', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'0', N'14', N'', N'3', N'', N'0', N'0', N'100', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'发送', N'', N'延期发送', N'0', N'保存', N'1', N'抄送', N'0', N'二维码', N'0', N'移交', N'0', N'删除', N'0', N'结束流程', N'0', N'查看父流程', N'0', N'打开公文', N'0', N'0', N'0', N'公文版本', N'下载VSTO插件', N'0', N'0', N'下载公文正文(word)', N'0', N'KK在线预览', N'0', N'轨迹', N'1', N'挂起', N'0', N'查询', N'0', N'流转自定义', N'0', N'数据版本', N'0', N'数据批阅', N'0', N'重要性', N'0', N'节点时限', N'0', N'分配', N'0', N'关注', N'0', N'确认', N'0', N'列表', N'1', N'批量审核', N'0', N'备注', N'0', N'帮助提示', N'0', N'小纸条', N'0', N'评论', N'0', N'即时通讯', N'0', N'下一条', N'0', N'子线程', N'0', N'0', N'跳转', N'0', N'', N'切换部门', N'0', N'提交身份', N'0', N'0', N'1', N'0', N'0', N'催办', N'1', N'回滚', N'1', N'0', N'1', N'0', N'退回', N'2', N'', N'1', N'0', N'0', N'0', N'0', N'', N'', N'打印Html', N'0', N'0', N'0', N'打印pdf', N'0', N'0', N'0', N'0', N'', N'打包下载', N'0', N'0', N'0', N'打印单据', N'0', N'会签', N'0', N'加主持人', N'0', N'0', N'@IsYouLiTai=0@PushMsgs_AutoNum=2@X=50', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'审核信息', N'0', N'0', N'0', N'', N'审核', N'同意', N'0', N'0', N'1', N'', N'1', N'ND101', N'', N'', N'', N'0', N'0', N'300', N'0', N'1', N'1', N'0', N'0', N'审核.png', N'0', N'0', N'', N'0', N'140', N'30', N'0', N'0', N'0', N'0', N'2', N'0', N'1', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'', N'', N'2', N'0', N'0', N'http://', N'0', N'', N'1', N'@01', N'@01', N'@104', N'', N'', N'', N'@103', N'50', N'230', N'', N'0', N'300', N'子流程', N'0', N'0', N'0', N'启动子流程', N'', N'', N'0', N'轨迹', N'0', N'300', N'流转自定义', N'0', N'0', N'300', N'5', N'', N'', N'1', N'0', N'0', N'0', N'', N'', N'', N'', N'1', N'1', N'1', N'01', N'总经理', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'0', N'', NULL, N'Ai助理', N'0', N'调整未来处理人', N'1', N'0', N'预置处理人', N'0', NULL, N'', N'下载公文正文(pdf)', N'0', N'', N'', N'', NULL, NULL), (N'104', N'104', N'001', N'请假流程-我的极简流程', N'HR审批', N'0', N'0', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'1', N'0', N'14', N'', N'4', N'', N'0', N'0', N'100', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'发送', N'', N'延期发送', N'0', N'保存', N'1', N'抄送', N'0', N'二维码', N'0', N'移交', N'0', N'删除', N'0', N'结束流程', N'0', N'查看父流程', N'0', N'打开公文', N'0', N'0', N'0', N'公文版本', N'下载VSTO插件', N'0', N'0', N'下载公文正文(word)', N'0', N'KK在线预览', N'0', N'轨迹', N'1', N'挂起', N'0', N'查询', N'0', N'流转自定义', N'0', N'数据版本', N'0', N'数据批阅', N'0', N'重要性', N'0', N'节点时限', N'0', N'分配', N'0', N'关注', N'0', N'确认', N'0', N'列表', N'1', N'批量审核', N'0', N'备注', N'0', N'帮助提示', N'0', N'小纸条', N'0', N'评论', N'0', N'即时通讯', N'0', N'下一条', N'0', N'子线程', N'0', N'0', N'跳转', N'0', N'', N'切换部门', N'0', N'提交身份', N'0', N'0', N'1', N'0', N'0', N'催办', N'1', N'回滚', N'1', N'0', N'1', N'0', N'退回', N'2', N'', N'1', N'0', N'0', N'0', N'0', N'', N'', N'打印Html', N'0', N'0', N'0', N'打印pdf', N'0', N'0', N'0', N'0', N'', N'打包下载', N'0', N'0', N'0', N'打印单据', N'0', N'会签', N'0', N'加主持人', N'0', N'0', N'@X=320@QiangBanSendAfterRole=@TeamleaderConfirm=@GenerWorkerListDelRole=@XieZuoOverRole=@TeamleaderCfmVal=@ShenFenModel=@XieZuoOverRate=@IsShowReturnNodeInToolbar=@PushMsgs_AutoNum=2@IsYouLiTai=0@ShenFenVal=', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'审核信息', N'0', N'0', N'0', N'', N'审核', N'同意', N'0', N'0', N'1', N'', N'1', N'ND101', N'', N'', N'', N'0', N'0', N'300', N'0', N'1', N'1', N'0', N'0', N'审核.png', N'0', N'0', N'', N'0', N'140', N'30', N'0', N'0', N'0', N'0', N'2', N'0', N'1', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'', N'', N'2', N'0', N'0', N'http://', N'0', N'', N'1', N'@06', N'@06', N'@105', N'', N'', N'', N'@104', N'320', N'145', N'', N'0', N'300', N'子流程', N'0', N'0', N'0', N'启动子流程', N'', N'', N'0', N'轨迹', N'0', N'300', N'流转自定义', N'0', N'0', N'300', N'5', N'', N'', N'1', N'0', N'0', N'0', N'', N'', N'', N'', N'1', N'1', N'1', N'06', N'人力资源部经理', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'0', N'', NULL, N'Ai助理', N'0', N'调整未来处理人', N'1', N'0', N'预置处理人', N'0', NULL, N'', N'下载公文正文(pdf)', N'0', N'', N'', N'', NULL, NULL), (N'105', N'105', N'001', N'请假流程-我的极简流程', N'反馈给审批人', N'0', N'0', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'2', N'0', N'7', N'', N'5', N'', N'0', N'0', N'100', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'发送', N'', N'延期发送', N'0', N'保存', N'1', N'抄送', N'0', N'二维码', N'0', N'移交', N'0', N'删除', N'0', N'结束流程', N'0', N'查看父流程', N'0', N'打开公文', N'0', N'0', N'0', N'公文版本', N'下载VSTO插件', N'0', N'0', N'下载公文正文(word)', N'0', N'KK在线预览', N'0', N'轨迹', N'1', N'挂起', N'0', N'查询', N'0', N'流转自定义', N'0', N'数据版本', N'0', N'数据批阅', N'0', N'重要性', N'0', N'节点时限', N'0', N'分配', N'0', N'关注', N'0', N'确认', N'0', N'列表', N'1', N'批量审核', N'0', N'备注', N'0', N'帮助提示', N'0', N'小纸条', N'0', N'评论', N'0', N'即时通讯', N'0', N'下一条', N'0', N'子线程', N'0', N'0', N'跳转', N'0', N'', N'切换部门', N'0', N'提交身份', N'0', N'0', N'1', N'0', N'0', N'催办', N'1', N'回滚', N'1', N'0', N'1', N'0', N'退回', N'2', N'', N'1', N'0', N'0', N'0', N'0', N'', N'', N'打印Html', N'0', N'0', N'0', N'打印pdf', N'0', N'0', N'0', N'0', N'', N'打包下载', N'0', N'0', N'0', N'打印单据', N'0', N'会签', N'0', N'加主持人', N'0', N'0', N'@IsYouLiTai=0@PushMsgs_AutoNum=2@X=500', N'0', N'0', N'0', N'0', N'2', N'0', N'0', N'0', N'审核信息', N'0', N'0', N'0', N'', N'审核', N'同意', N'0', N'0', N'1', N'', N'1', N'ND101', N'', N'', N'', N'0', N'0', N'300', N'0', N'1', N'1', N'0', N'0', N'审核.png', N'0', N'0', N'', N'0', N'140', N'30', N'0', N'0', N'0', N'0', N'2', N'0', N'1', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'', N'', N'2', N'0', N'0', N'http://', N'0', N'', N'2', N'', N'', N'', N'', N'', N'', N'@101@102@105', N'500', N'215', N'', N'0', N'300', N'子流程', N'0', N'0', N'0', N'启动子流程', N'', N'', N'0', N'轨迹', N'0', N'300', N'流转自定义', N'0', N'0', N'300', N'5', N'', N'', N'1', N'0', N'0', N'0', N'', N'', N'', N'', N'1', N'1', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N'0', N'0', N'0', N'0', N'0', N'0', N'', N'0', N'0', N'0', N'', NULL, N'Ai助理', N'0', N'调整未来处理人', N'1', N'0', N'预置处理人', N'0', NULL, N'', N'下载公文正文(pdf)', N'0', N'', N'', N'', NULL, NULL)
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeCancel
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeCancel]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeCancel]
GO

CREATE TABLE [dbo].[WF_NodeCancel] (
  [FK_Node] int  NOT NULL,
  [CancelTo] int  NOT NULL
)
GO

ALTER TABLE [dbo].[WF_NodeCancel] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeCancel
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeDept
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeDept]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeDept]
GO

CREATE TABLE [dbo].[WF_NodeDept] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_NodeDept] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeDept
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeEmp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeEmp]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeEmp]
GO

CREATE TABLE [dbo].[WF_NodeEmp] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_NodeEmp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeEmp
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeReturn
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeReturn]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeReturn]
GO

CREATE TABLE [dbo].[WF_NodeReturn] (
  [FK_Node] int  NOT NULL,
  [ReturnTo] int  NOT NULL
)
GO

ALTER TABLE [dbo].[WF_NodeReturn] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeReturn
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeStation
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeStation]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeStation]
GO

CREATE TABLE [dbo].[WF_NodeStation] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Station] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [OrgNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_NodeStation] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeStation
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_NodeStation] ([MyPK], [FK_Node], [FK_Station], [OrgNo]) VALUES (N'103_01', N'103', N'01', N''), (N'104_06', N'104', N'06', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeSubFlow
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeSubFlow]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeSubFlow]
GO

CREATE TABLE [dbo].[WF_NodeSubFlow] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Flow] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Node] int  NULL,
  [SubFlowType] int  NULL,
  [SubFlowModel] int  NULL,
  [ParentFlowSendNextStepRole] int  NULL,
  [ParentFlowOverRole] int  NULL,
  [SubFlowNodeID] int  NULL,
  [IsAutoSendSLSubFlowOver] int  NULL,
  [SubFlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [SubFlowName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartOnceOnly] int  NULL,
  [IsEnableSpecFlowStart] int  NULL,
  [SpecFlowStart] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SpecFlowStartNote] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnableSpecFlowOver] int  NULL,
  [SpecFlowOver] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SpecFlowOverNote] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExpType] int  NULL,
  [CondExp] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [YBFlowReturnRole] int  NULL,
  [ReturnToNode] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendModel] int  NULL,
  [SubFlowStartModel] int  NULL,
  [SubFlowCopyFields] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [BackCopyRole] int  NULL,
  [ParentFlowCopyFields] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [SubFlowSta] int  NULL,
  [Idx] int  NULL,
  [X] int  NULL,
  [Y] int  NULL,
  [SubFlowHidTodolist] int  NULL,
  [InvokeTime] int DEFAULT '0' NULL,
  [CompleteReStart] int DEFAULT '0' NULL,
  [IsEnableSQL] int DEFAULT '0' NULL,
  [SpecSQL] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [IsEnableSameLevelNode] int DEFAULT '0' NULL,
  [SameLevelNode] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DBSrcDoc] nvarchar(500) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [DBSrcType] int DEFAULT '0' NULL,
  [SubFlowLab] nvarchar(20) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubFlowShowModel] int DEFAULT '0' NULL,
  [IsSubFlowGuide] int DEFAULT '0' NULL,
  [SubFlowGuideSQL] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubFlowGuideGroup] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubFlowGuideEnNoFiled] nvarchar(40) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [SubFlowGuideEnNameFiled] nvarchar(40) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [YanXuToNode] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [ReturnToNodeText] nvarchar(200) COLLATE Chinese_PRC_CI_AS DEFAULT '0' NULL,
  [AtPara] nvarchar(4000) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_NodeSubFlow] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeSubFlow
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeTeam
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeTeam]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeTeam]
GO

CREATE TABLE [dbo].[WF_NodeTeam] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Team] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_NodeTeam] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeTeam
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_NodeToolbar
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_NodeToolbar]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_NodeToolbar]
GO

CREATE TABLE [dbo].[WF_NodeToolbar] (
  [OID] int  NOT NULL,
  [FK_Node] int  NULL,
  [Title] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ExcType] int  NULL,
  [UrlExt] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Target] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsMyFlow] int  NULL,
  [IsMyTree] int  NULL,
  [IsMyView] int  NULL,
  [IsMyCC] int  NULL,
  [IconPath] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Idx] int  NULL,
  [MyFileName] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFilePath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileExt] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [WebPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [MyFileH] int  NULL,
  [MyFileW] int  NULL,
  [MyFileSize] float(53)  NULL
)
GO

ALTER TABLE [dbo].[WF_NodeToolbar] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_NodeToolbar
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Part
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Part]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Part]
GO

CREATE TABLE [dbo].[WF_Part] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FlowNo] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeID] int  NULL,
  [PartType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag0] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag1] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag2] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag3] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag4] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag5] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag6] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag7] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag8] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag9] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_Part] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Part
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_PowerModel
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_PowerModel]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_PowerModel]
GO

CREATE TABLE [dbo].[WF_PowerModel] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Model] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PowerFlag] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PowerFlagName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PowerCtrlType] int  NULL,
  [EmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [StaNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [StaName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FrmID] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_PowerModel] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_PowerModel
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_PushMsg
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_PushMsg]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_PushMsg]
GO

CREATE TABLE [dbo].[WF_PushMsg] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FlowNo] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeID] int  NULL,
  [EventNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [PushWayNo] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [PushWayName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PushDoc] nvarchar(3500) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tag] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnableSMS] int  NULL,
  [SMSField] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SMSDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [SMSNodes] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SMSPushModel] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnableEmail] int  NULL,
  [MailAddress] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [MailTitle] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MailDoc] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [MailNodes] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [BySQL] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ByEmps] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PushWayExp1] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [PushWayExp2] nvarchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_PushMsg] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_PushMsg
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_PushMsg] ([MyPK], [FlowNo], [NodeID], [EventNo], [PushWayNo], [PushWayName], [PushDoc], [Tag], [IsEnableSMS], [SMSField], [SMSDoc], [SMSNodes], [SMSPushModel], [IsEnableEmail], [MailAddress], [MailTitle], [MailDoc], [MailNodes], [BySQL], [ByEmps], [PushWayExp1], [PushWayExp2], [AtPara]) VALUES (N'19a290936b304e72aec455efb9a58042', N'001', N'103', N'SendSuccess', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'1d77201e89cb4ae98435f571866426c7', N'001', N'102', N'SendSuccess', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'4952cb6fbefd468e81da6c7cb0a0f393', N'001', N'102', N'ReturnAfter', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'8a40834542894f41a691974ab8d13e30', N'001', N'104', N'SendSuccess', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'8c81131e7b6e4a15b087c664c65b8494', N'001', N'103', N'ReturnAfter', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'9c399337bf4640688193945a6a81f58a', N'001', N'104', N'ReturnAfter', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'c1065238eb5a4f8eb9e883ecb5f64bf8', N'001', N'105', N'SendSuccess', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'd16ceda96178461f8f7bab0f4ae49c22', N'001', N'101', N'ReturnAfter', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'd9e5e722813340af895dec8234dff784', N'001', N'101', N'SendSuccess', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N''), (N'e7e59bbfff044a04bbed88f81c85feeb', N'001', N'105', N'ReturnAfter', N'', N'', N'', N'', N'1', N'', N'', N'', N'Email', N'1', N'', N'', N'', N'', N'', N'', N'', N'', N'')
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_RememberMe
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_RememberMe]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_RememberMe]
GO

CREATE TABLE [dbo].[WF_RememberMe] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [FK_Emp] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [Objs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ObjsExt] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Emps] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpsExt] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_RememberMe] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_RememberMe
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_ReturnWork
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_ReturnWork]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_ReturnWork]
GO

CREATE TABLE [dbo].[WF_ReturnWork] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [WorkID] int  NULL,
  [FID] int  NULL,
  [ReturnNode] int  NULL,
  [ReturnNodeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Returner] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReturnerName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ReturnToNode] int  NULL,
  [ReturnToEmp] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [BeiZhu] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsBackTracking] int  NULL
)
GO

ALTER TABLE [dbo].[WF_ReturnWork] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_ReturnWork
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_SelectAccper
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_SelectAccper]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_SelectAccper]
GO

CREATE TABLE [dbo].[WF_SelectAccper] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Node] int  NULL,
  [NodeName] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkID] int  NULL,
  [FK_Emp] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [EmpName] nvarchar(60) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Dept] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeptName] nvarchar(400) COLLATE Chinese_PRC_CI_AS  NULL,
  [AccType] int  NULL,
  [Rec] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Info] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsRemember] int  NULL,
  [Idx] int  NULL,
  [Tag] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [TimeLimit] int  NULL,
  [TSpanHour] float(53)  NULL,
  [NodeIdx] int  NULL,
  [ADT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_SelectAccper] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_SelectAccper
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_SQLTemplate
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_SQLTemplate]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_SQLTemplate]
GO

CREATE TABLE [dbo].[WF_SQLTemplate] (
  [No] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [SQLType] int  NULL,
  [DBSrc] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Name] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Docs] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_SQLTemplate] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_SQLTemplate
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_SyncData
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_SyncData]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_SyncData]
GO

CREATE TABLE [dbo].[WF_SyncData] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [SyncType] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [SyncTypeT] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Note] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [APIUrl] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [DBSrc] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQLTables] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SQLFields] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AtPara] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_SyncData] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_SyncData
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_SyncDataField
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_SyncDataField]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_SyncDataField]
GO

CREATE TABLE [dbo].[WF_SyncDataField] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [RefPKVal] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [AttrType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToFieldKey] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToFieldName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToFieldType] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsSync] int  NULL,
  [TurnFunc] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_SyncDataField] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_SyncDataField
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_Task
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Task]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_Task]
GO

CREATE TABLE [dbo].[WF_Task] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [FK_Flow] nvarchar(5) COLLATE Chinese_PRC_CI_AS  NULL,
  [Starter] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToNode] int  NULL,
  [ToEmps] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Paras] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [TaskSta] int  NULL,
  [Msg] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartDT] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [RDT] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_Task] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_Task
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_TransferCustom
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_TransferCustom]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_TransferCustom]
GO

CREATE TABLE [dbo].[WF_TransferCustom] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [WorkID] int  NULL,
  [FK_Node] int  NULL,
  [NodeName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [Worker] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkerName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SubFlowNo] nvarchar(3) COLLATE Chinese_PRC_CI_AS  NULL,
  [PlanDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [TodolistModel] int  NULL,
  [IsEnable] int  NULL,
  [Idx] int  NULL
)
GO

ALTER TABLE [dbo].[WF_TransferCustom] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_TransferCustom
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_WorkFlowDeleteLog
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_WorkFlowDeleteLog]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_WorkFlowDeleteLog]
GO

CREATE TABLE [dbo].[WF_WorkFlowDeleteLog] (
  [OID] int  NOT NULL,
  [FID] int  NULL,
  [FK_Dept] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowStarter] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowStartRDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FK_Flow] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEnderRDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowEndNode] int  NULL,
  [FlowDaySpan] float(53)  NULL,
  [FlowEmps] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [Oper] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [OperDept] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [OperDeptName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeleteNote] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [DeleteDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[WF_WorkFlowDeleteLog] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_WorkFlowDeleteLog
-- ----------------------------
BEGIN TRANSACTION
GO

COMMIT
GO


-- ----------------------------
-- Table structure for WF_WorkOpt
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_WorkOpt]') AND type IN ('U'))
	DROP TABLE [dbo].[WF_WorkOpt]
GO

CREATE TABLE [dbo].[WF_WorkOpt] (
  [MyPK] nvarchar(150) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [WorkID] int  NULL,
  [NodeID] int  NULL,
  [ToNodeID] int  NULL,
  [EmpNo] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [FlowNo] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendEmps] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendEmpsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDepts] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDeptsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendStations] varchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendStationsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDeptLeaders] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendDeptLeadersT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendNote] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCEmps] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCEmpsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCDepts] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCDeptsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCStations] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCStationsT] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [CCNote] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [Title] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [NodeName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [ToNodeName] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [StarterName] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [StartRDT] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [TodoEmps] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [SenderName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendRDT] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [SendSDT] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShiftTo] varchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ShiftNote] text COLLATE Chinese_PRC_CI_AS  NULL,
  [IsJiaoJi] int DEFAULT '0' NULL,
  [EmpName] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [UseTimeFlow] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  [UseTimeNode] nvarchar(100) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
)
GO

ALTER TABLE [dbo].[WF_WorkOpt] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of WF_WorkOpt
-- ----------------------------
BEGIN TRANSACTION
GO

INSERT INTO [dbo].[WF_WorkOpt] ([MyPK], [WorkID], [NodeID], [ToNodeID], [EmpNo], [FlowNo], [SendEmps], [SendEmpsT], [SendDepts], [SendDeptsT], [SendStations], [SendStationsT], [SendDeptLeaders], [SendDeptLeadersT], [SendNote], [CCEmps], [CCEmpsT], [CCDepts], [CCDeptsT], [CCStations], [CCStationsT], [CCNote], [Title], [NodeName], [ToNodeName], [StarterName], [StartRDT], [TodoEmps], [SenderName], [SendRDT], [SendSDT], [ShiftTo], [ShiftNote], [IsJiaoJi], [EmpName], [UseTimeFlow], [UseTimeNode]) VALUES (N'ccs_101_102_2060920859', N'2060920859', N'101', N'102', N'ccs', N'', N'zhanghaicheng', N'张海成', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'驰骋公司 - 驰骋管理员 在 2024-08-21 17:12 发起', N'申请人', N'部门审批', N'驰骋管理员', N'2024-08-21 17:12:44', N'', N'', N'无', N'无', NULL, NULL, N'0', N'驰骋管理员', N'00天 00时00分00秒', N'00天 00时00分00秒')
GO

COMMIT
GO


-- ----------------------------
-- View structure for V_FlowStarterBPM
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[V_FlowStarterBPM]') AND type IN ('V'))
	DROP VIEW [dbo].[V_FlowStarterBPM]
GO

CREATE VIEW [dbo].[V_FlowStarterBPM] AS SELECT
	A.FK_Flow,
	a.FlowName,
	C.FK_Emp,
	C.OrgNo 
FROM
	WF_Node a,
	WF_NodeStation b,
	Port_DeptEmpStation c 
WHERE
	a.NodePosType= 0 
	AND a.NodeID= b.FK_Node 
	AND B.FK_Station= C.FK_Station 	 
	AND ( A.DeliveryWay= 0 OR A.DeliveryWay= 14 ) UNION
SELECT
	A.FK_Flow,
	a.FlowName,
	C.FK_Emp,
	C.OrgNo 
FROM
	WF_Node a,
	WF_NodeDept b,
	Port_DeptEmp c 
WHERE
	a.NodePosType= 0 
	AND a.NodeID= b.FK_Node 
	AND B.FK_Dept= C.FK_Dept 
	AND A.DeliveryWay= 1 UNION
SELECT
	A.FK_Flow,
	a.FlowName,
	B.FK_Emp,
	C.OrgNo
FROM
	WF_Node A,
	WF_NodeEmp B,
	Port_Emp C 
WHERE
	A.NodePosType= 0 
	AND A.NodeID= B.FK_Node 
	AND A.DeliveryWay= 3 
	AND B.FK_Emp=C.No 
	UNION
SELECT
	A.FK_Flow,
	A.FlowName,
	B.No AS FK_Emp,
	B.OrgNo 
FROM
	WF_Node A,
	Port_Emp B,
	WF_Flow C
WHERE
	A.NodePosType= 0 	AND A.DeliveryWay= 4 
			AND A.FK_Flow= C.No
		AND ((B.OrgNo = C.OrgNo) OR ((B.OrgNo IS NULL) AND (C.OrgNo IS NULL)))

	UNION
SELECT
	A.FK_Flow,
	a.FlowName,
	E.FK_Emp,
	E.OrgNo 
FROM
	WF_Node A,
	WF_NodeDept B,
	WF_NodeStation C,
	Port_DeptEmpStation E 
WHERE
	a.NodePosType= 0 
	AND A.NodeID= B.FK_Node 
	AND A.NodeID= C.FK_Node 
	AND B.FK_Dept= E.FK_Dept 
	AND C.FK_Station= E.FK_Station 
	AND A.DeliveryWay= 9 UNION
SELECT
	A.FK_Flow,
	A.FlowName,
	C.No AS FK_Emp,
	B.OrgNo 
FROM
	WF_Node A,
	WF_FlowOrg B,
	Port_Emp C 
WHERE
	A.FK_Flow= B.FlowNo 
	 AND ((B.OrgNo = C.OrgNo) OR ((B.OrgNo IS NULL) AND (C.OrgNo IS NULL)))
	AND (
	A.DeliveryWay= 22 
	OR A.DeliveryWay= 51)
GO


-- ----------------------------
-- View structure for WF_EmpWorks
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_EmpWorks]') AND type IN ('V'))
	DROP VIEW [dbo].[WF_EmpWorks]
GO

CREATE VIEW [dbo].[WF_EmpWorks] AS SELECT A.PRI,A.WorkID,B.IsRead, A.Starter,
A.StarterName,
A.WFState,
A.FK_Dept,A.DeptName, A.FK_Flow, A.FlowName,A.PWorkID,
A.PFlowNo,
B.FK_Node, B.NodeName AS NodeName,  A.Title, A.RDT, B.RDT AS ADT, 
B.SDT, B.FK_Emp,B.FID ,A.FK_FlowSort,A.SysType,A.SDTOfNode,A.SendDT,
A.GuestNo,
A.GuestName,A.BillNo,A.TodoEmps,A.TodoEmpsNum,A.TodoSta,
A.TaskSta,A.FlowNote,0 as ListType,A.Sender,A.AtPara,
A.Domain,A.OrgNo,C.Idx AS FlowIdx, D.Idx AS FlowSortIdx
FROM  WF_GenerWorkFlow A, WF_GenerWorkerlist B,WF_Flow C,WF_FlowSort D
WHERE     (B.IsEnable = 1) AND (B.IsPass = 0)
 AND A.WorkID = B.WorkID AND A.FK_Node = B.FK_Node AND A.WFState!=0 AND WhoExeIt!=1 AND A.FK_Flow=C.No AND A.FK_FlowSort=D.No AND C.FK_FlowSort=D.No
 UNION
SELECT A.PRI,A.WorkID,B.Sta AS IsRead, A.Starter,
A.StarterName,
2 AS WFState,
A.FK_Dept,A.DeptName, A.FK_Flow, A.FlowName,A.PWorkID,
A.PFlowNo,
B.NodeIDCC FK_Node, B.NodeIDCCName AS NodeName,   A.Title, A.RDT, B.RDT AS ADT, 
B.RDT AS SDT, B.CCTo as FK_Emp,B.FID ,A.FK_FlowSort,A.SysType,A.SDTOfNode,A.SendDT,
A.GuestNo,
A.GuestName,A.BillNo,A.TodoEmps,A.TodoEmpsNum,
0 as TodoSta,
0 AS TaskSta,
A.FlowNote,
1 as ListType,
B.RecEmpNo as Sender,
'@IsCC=1'+'@NodeIDWork='+convert(varchar(100),B.NodeIDWork)+A.AtPara as AtPara,
A.Domain,A.OrgNo,C.Idx AS FlowIdx, D.Idx AS FlowSortIdx
  FROM WF_GenerWorkFlow A, WF_CCList B,WF_Flow C,WF_FlowSort D 
  WHERE A.WorkID=B.WorkID AND  B.Sta <=1 AND B.InEmpWorks = 1 AND A.WFState!=0 AND A.FK_Flow=C.No AND A.FK_FlowSort=D.No AND C.FK_FlowSort=D.No
GO


-- ----------------------------
-- View structure for WF_Todolist
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[WF_Todolist]') AND type IN ('V'))
	DROP VIEW [dbo].[WF_Todolist]
GO

CREATE VIEW [dbo].[WF_Todolist] AS SELECT
        A.WorkID+ '-'+ B.FK_Emp AS MyPK,
		A.WorkID AS WorkID,
        A.WorkID AS OID,
        A.Title AS Title,
        A.StarterName AS StarterName,
        A.RDT AS RDT,
        A.NodeName AS NodeName,
        A.TodoEmps AS TodoEmps,
        A.SendDT AS SendDT,
        A.Sender AS Sender,
        A.FK_Flow AS FlowNo,
        A.FlowName AS FlowName,
        B.FK_Emp AS EmpNo,
        A.OrgNo AS OrgNo
FROM
    wf_generworkflow A
   , wf_generworkerlist B
WHERE
    ((A.WorkID = B.WorkID)
        AND (A.FK_Node = B.FK_Node)
        AND (B.IsEnable = 1)
        AND (B.IsPass = 0))
GO


-- ----------------------------
-- Indexes structure for table Demo_BanJi
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_BanJi_No]
ON [dbo].[Demo_BanJi] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_BanJi
-- ----------------------------
ALTER TABLE [dbo].[Demo_BanJi] ADD CONSTRAINT [Demo_BanJipk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Demo_KeMu
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_KeMu_No]
ON [dbo].[Demo_KeMu] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_KeMu
-- ----------------------------
ALTER TABLE [dbo].[Demo_KeMu] ADD CONSTRAINT [Demo_KeMupk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Demo_QingJia
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_QingJia_OID]
ON [dbo].[Demo_QingJia] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_QingJia
-- ----------------------------
ALTER TABLE [dbo].[Demo_QingJia] ADD CONSTRAINT [Demo_QingJiapk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Demo_Resume
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_Resume_OID]
ON [dbo].[Demo_Resume] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_Resume
-- ----------------------------
ALTER TABLE [dbo].[Demo_Resume] ADD CONSTRAINT [Demo_Resumepk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Demo_Student
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_Student_No]
ON [dbo].[Demo_Student] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_Student
-- ----------------------------
ALTER TABLE [dbo].[Demo_Student] ADD CONSTRAINT [Demo_Studentpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Demo_StudentKeMu
-- ----------------------------
CREATE NONCLUSTERED INDEX [Demo_StudentKeMu_FK_Student_FK_KeMuID]
ON [dbo].[Demo_StudentKeMu] (
  [FK_Student] ASC,
  [FK_KeMu] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Demo_StudentKeMu
-- ----------------------------
ALTER TABLE [dbo].[Demo_StudentKeMu] ADD CONSTRAINT [Demo_StudentKeMupk] PRIMARY KEY CLUSTERED ([FK_Student], [FK_KeMu])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_BBS
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_BBS_No]
ON [dbo].[Frm_BBS] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_BBS
-- ----------------------------
ALTER TABLE [dbo].[Frm_BBS] ADD CONSTRAINT [Frm_BBSpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_Collection
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_Collection_No]
ON [dbo].[Frm_Collection] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_Collection
-- ----------------------------
ALTER TABLE [dbo].[Frm_Collection] ADD CONSTRAINT [Frm_Collectionpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_DBRole
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_DBRole_MyPK]
ON [dbo].[Frm_DBRole] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_DBRole
-- ----------------------------
ALTER TABLE [dbo].[Frm_DBRole] ADD CONSTRAINT [Frm_DBRolepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_DeptCreate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_DeptCreate_FrmID_FK_DeptID]
ON [dbo].[Frm_DeptCreate] (
  [FrmID] ASC,
  [FK_Dept] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_DeptCreate
-- ----------------------------
ALTER TABLE [dbo].[Frm_DeptCreate] ADD CONSTRAINT [Frm_DeptCreatepk] PRIMARY KEY CLUSTERED ([FrmID], [FK_Dept])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_DictFlow
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_DictFlow_MyPK]
ON [dbo].[Frm_DictFlow] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_DictFlow
-- ----------------------------
ALTER TABLE [dbo].[Frm_DictFlow] ADD CONSTRAINT [Frm_DictFlowpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_EmpCreate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_EmpCreate_FrmID_FK_EmpID]
ON [dbo].[Frm_EmpCreate] (
  [FrmID] ASC,
  [FK_Emp] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_EmpCreate
-- ----------------------------
ALTER TABLE [dbo].[Frm_EmpCreate] ADD CONSTRAINT [Frm_EmpCreatepk] PRIMARY KEY CLUSTERED ([FrmID], [FK_Emp])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_Func
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_Func_No]
ON [dbo].[Frm_Func] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_Func
-- ----------------------------
ALTER TABLE [dbo].[Frm_Func] ADD CONSTRAINT [Frm_Funcpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_GenerBill
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_GenerBill_WorkID]
ON [dbo].[Frm_GenerBill] (
  [WorkID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_GenerBill
-- ----------------------------
ALTER TABLE [dbo].[Frm_GenerBill] ADD CONSTRAINT [Frm_GenerBillpk] PRIMARY KEY CLUSTERED ([WorkID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_GroupMethod
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_GroupMethod_No]
ON [dbo].[Frm_GroupMethod] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_GroupMethod
-- ----------------------------
ALTER TABLE [dbo].[Frm_GroupMethod] ADD CONSTRAINT [Frm_GroupMethodpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_Method
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_Method_No]
ON [dbo].[Frm_Method] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_Method
-- ----------------------------
ALTER TABLE [dbo].[Frm_Method] ADD CONSTRAINT [Frm_Methodpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_StationCreate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_StationCreate_FrmID_FK_StationID]
ON [dbo].[Frm_StationCreate] (
  [FrmID] ASC,
  [FK_Station] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_StationCreate
-- ----------------------------
ALTER TABLE [dbo].[Frm_StationCreate] ADD CONSTRAINT [Frm_StationCreatepk] PRIMARY KEY CLUSTERED ([FrmID], [FK_Station])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_StationDept
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_StationDept_FK_Frm_FK_Station_FK_DeptID]
ON [dbo].[Frm_StationDept] (
  [FK_Frm] ASC,
  [FK_Station] ASC,
  [FK_Dept] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_StationDept
-- ----------------------------
ALTER TABLE [dbo].[Frm_StationDept] ADD CONSTRAINT [Frm_StationDeptpk] PRIMARY KEY CLUSTERED ([FK_Frm], [FK_Station], [FK_Dept])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_ToolbarBtn
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_ToolbarBtn_MyPK]
ON [dbo].[Frm_ToolbarBtn] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_ToolbarBtn
-- ----------------------------
ALTER TABLE [dbo].[Frm_ToolbarBtn] ADD CONSTRAINT [Frm_ToolbarBtnpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Frm_Track
-- ----------------------------
CREATE NONCLUSTERED INDEX [Frm_Track_MyPK]
ON [dbo].[Frm_Track] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Frm_Track
-- ----------------------------
ALTER TABLE [dbo].[Frm_Track] ADD CONSTRAINT [Frm_Trackpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GIS_BasicInfo
-- ----------------------------
CREATE NONCLUSTERED INDEX [GIS_BasicInfo_No]
ON [dbo].[GIS_BasicInfo] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GIS_BasicInfo
-- ----------------------------
ALTER TABLE [dbo].[GIS_BasicInfo] ADD CONSTRAINT [GIS_BasicInfopk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GIS_HeChaQiShu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GIS_HeChaQiShu_No]
ON [dbo].[GIS_HeChaQiShu] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GIS_HeChaQiShu
-- ----------------------------
ALTER TABLE [dbo].[GIS_HeChaQiShu] ADD CONSTRAINT [GIS_HeChaQiShupk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GIS_QuXian
-- ----------------------------
CREATE NONCLUSTERED INDEX [GIS_QuXian_No]
ON [dbo].[GIS_QuXian] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GIS_QuXian
-- ----------------------------
ALTER TABLE [dbo].[GIS_QuXian] ADD CONSTRAINT [GIS_QuXianpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GIS_XiangZhen
-- ----------------------------
CREATE NONCLUSTERED INDEX [GIS_XiangZhen_No]
ON [dbo].[GIS_XiangZhen] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GIS_XiangZhen
-- ----------------------------
ALTER TABLE [dbo].[GIS_XiangZhen] ADD CONSTRAINT [GIS_XiangZhenpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table goview_projectdatas
-- ----------------------------
CREATE NONCLUSTERED INDEX [goview_projectdatas_MyPK]
ON [dbo].[goview_projectdatas] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table goview_projectdatas
-- ----------------------------
ALTER TABLE [dbo].[goview_projectdatas] ADD CONSTRAINT [goview_projectdataspk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table goview_projects
-- ----------------------------
CREATE NONCLUSTERED INDEX [goview_projects_MyPK]
ON [dbo].[goview_projects] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table goview_projects
-- ----------------------------
ALTER TABLE [dbo].[goview_projects] ADD CONSTRAINT [goview_projectspk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_DeptMenu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_DeptMenu_MyPK]
ON [dbo].[GPM_DeptMenu] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_DeptMenu
-- ----------------------------
ALTER TABLE [dbo].[GPM_DeptMenu] ADD CONSTRAINT [GPM_DeptMenupk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_EmpMenu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_EmpMenu_MyPK]
ON [dbo].[GPM_EmpMenu] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_EmpMenu
-- ----------------------------
ALTER TABLE [dbo].[GPM_EmpMenu] ADD CONSTRAINT [GPM_EmpMenupk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_Group
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_Group_No]
ON [dbo].[GPM_Group] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_Group
-- ----------------------------
ALTER TABLE [dbo].[GPM_Group] ADD CONSTRAINT [GPM_Grouppk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_GroupDept
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_GroupDept_MyPK]
ON [dbo].[GPM_GroupDept] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_GroupDept
-- ----------------------------
ALTER TABLE [dbo].[GPM_GroupDept] ADD CONSTRAINT [GPM_GroupDeptpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_GroupEmp
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_GroupEmp_FK_Group_FK_EmpID]
ON [dbo].[GPM_GroupEmp] (
  [FK_Group] ASC,
  [FK_Emp] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_GroupEmp
-- ----------------------------
ALTER TABLE [dbo].[GPM_GroupEmp] ADD CONSTRAINT [GPM_GroupEmppk] PRIMARY KEY CLUSTERED ([FK_Group], [FK_Emp])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_GroupMenu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_GroupMenu_MyPK]
ON [dbo].[GPM_GroupMenu] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_GroupMenu
-- ----------------------------
ALTER TABLE [dbo].[GPM_GroupMenu] ADD CONSTRAINT [GPM_GroupMenupk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_GroupStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_GroupStation_FK_Group_FK_StationID]
ON [dbo].[GPM_GroupStation] (
  [FK_Group] ASC,
  [FK_Station] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_GroupStation
-- ----------------------------
ALTER TABLE [dbo].[GPM_GroupStation] ADD CONSTRAINT [GPM_GroupStationpk] PRIMARY KEY CLUSTERED ([FK_Group], [FK_Station])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_Menu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_Menu_No]
ON [dbo].[GPM_Menu] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_Menu
-- ----------------------------
ALTER TABLE [dbo].[GPM_Menu] ADD CONSTRAINT [GPM_Menupk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_MenuDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_MenuDtl_No]
ON [dbo].[GPM_MenuDtl] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_MenuDtl
-- ----------------------------
ALTER TABLE [dbo].[GPM_MenuDtl] ADD CONSTRAINT [GPM_MenuDtlpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_Module
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_Module_No]
ON [dbo].[GPM_Module] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_Module
-- ----------------------------
ALTER TABLE [dbo].[GPM_Module] ADD CONSTRAINT [GPM_Modulepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_PowerCenter
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_PowerCenter_MyPK]
ON [dbo].[GPM_PowerCenter] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_PowerCenter
-- ----------------------------
ALTER TABLE [dbo].[GPM_PowerCenter] ADD CONSTRAINT [GPM_PowerCenterpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_StationMenu
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_StationMenu_MyPK]
ON [dbo].[GPM_StationMenu] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_StationMenu
-- ----------------------------
ALTER TABLE [dbo].[GPM_StationMenu] ADD CONSTRAINT [GPM_StationMenupk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_System
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_System_No]
ON [dbo].[GPM_System] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_System
-- ----------------------------
ALTER TABLE [dbo].[GPM_System] ADD CONSTRAINT [GPM_Systempk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_Window
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_Window_MyPK]
ON [dbo].[GPM_Window] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_Window
-- ----------------------------
ALTER TABLE [dbo].[GPM_Window] ADD CONSTRAINT [GPM_Windowpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_WindowTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_WindowTemplate_No]
ON [dbo].[GPM_WindowTemplate] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_WindowTemplate
-- ----------------------------
ALTER TABLE [dbo].[GPM_WindowTemplate] ADD CONSTRAINT [GPM_WindowTemplatepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table GPM_WindowTemplateDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [GPM_WindowTemplateDtl_MyPK]
ON [dbo].[GPM_WindowTemplateDtl] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table GPM_WindowTemplateDtl
-- ----------------------------
ALTER TABLE [dbo].[GPM_WindowTemplateDtl] ADD CONSTRAINT [GPM_WindowTemplateDtlpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table ND1Rpt
-- ----------------------------
CREATE NONCLUSTERED INDEX [ND1Rpt_OID]
ON [dbo].[ND1Rpt] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table ND1Rpt
-- ----------------------------
ALTER TABLE [dbo].[ND1Rpt] ADD CONSTRAINT [ND1Rptpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table ND1Track
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Track_MyPK]
ON [dbo].[ND1Track] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Indexes structure for table ND10Rpt
-- ----------------------------
CREATE NONCLUSTERED INDEX [ND10Rpt_OID]
ON [dbo].[ND10Rpt] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table ND10Rpt
-- ----------------------------
ALTER TABLE [dbo].[ND10Rpt] ADD CONSTRAINT [ND10Rptpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_BBS
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_BBS_No]
ON [dbo].[OA_BBS] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_BBS
-- ----------------------------
ALTER TABLE [dbo].[OA_BBS] ADD CONSTRAINT [OA_BBSpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_BBSType
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_BBSType_No]
ON [dbo].[OA_BBSType] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_BBSType
-- ----------------------------
ALTER TABLE [dbo].[OA_BBSType] ADD CONSTRAINT [OA_BBSTypepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_Info
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_Info_No]
ON [dbo].[OA_Info] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_Info
-- ----------------------------
ALTER TABLE [dbo].[OA_Info] ADD CONSTRAINT [OA_Infopk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_InfoType
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_InfoType_No]
ON [dbo].[OA_InfoType] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_InfoType
-- ----------------------------
ALTER TABLE [dbo].[OA_InfoType] ADD CONSTRAINT [OA_InfoTypepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_KMDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_KMDtl_No]
ON [dbo].[OA_KMDtl] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_KMDtl
-- ----------------------------
ALTER TABLE [dbo].[OA_KMDtl] ADD CONSTRAINT [OA_KMDtlpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_KMTree
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_KMTree_No]
ON [dbo].[OA_KMTree] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_KMTree
-- ----------------------------
ALTER TABLE [dbo].[OA_KMTree] ADD CONSTRAINT [OA_KMTreepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_Knowledge
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_Knowledge_No]
ON [dbo].[OA_Knowledge] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_Knowledge
-- ----------------------------
ALTER TABLE [dbo].[OA_Knowledge] ADD CONSTRAINT [OA_Knowledgepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_Notepad
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_Notepad_MyPK]
ON [dbo].[OA_Notepad] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_Notepad
-- ----------------------------
ALTER TABLE [dbo].[OA_Notepad] ADD CONSTRAINT [OA_Notepadpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_Schedule
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_Schedule_MyPK]
ON [dbo].[OA_Schedule] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_Schedule
-- ----------------------------
ALTER TABLE [dbo].[OA_Schedule] ADD CONSTRAINT [OA_Schedulepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_Task
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_Task_MyPK]
ON [dbo].[OA_Task] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_Task
-- ----------------------------
ALTER TABLE [dbo].[OA_Task] ADD CONSTRAINT [OA_Taskpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_WorkChecker
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_WorkChecker_MyPK]
ON [dbo].[OA_WorkChecker] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_WorkChecker
-- ----------------------------
ALTER TABLE [dbo].[OA_WorkChecker] ADD CONSTRAINT [OA_WorkCheckerpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_WorkRec
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_WorkRec_MyPK]
ON [dbo].[OA_WorkRec] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_WorkRec
-- ----------------------------
ALTER TABLE [dbo].[OA_WorkRec] ADD CONSTRAINT [OA_WorkRecpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_WorkRecDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_WorkRecDtl_MyPK]
ON [dbo].[OA_WorkRecDtl] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_WorkRecDtl
-- ----------------------------
ALTER TABLE [dbo].[OA_WorkRecDtl] ADD CONSTRAINT [OA_WorkRecDtlpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table OA_WorkShare
-- ----------------------------
CREATE NONCLUSTERED INDEX [OA_WorkShare_MyPK]
ON [dbo].[OA_WorkShare] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table OA_WorkShare
-- ----------------------------
ALTER TABLE [dbo].[OA_WorkShare] ADD CONSTRAINT [OA_WorkSharepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Dept
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Dept_No]
ON [dbo].[Port_Dept] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Dept
-- ----------------------------
ALTER TABLE [dbo].[Port_Dept] ADD CONSTRAINT [Port_Deptpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_DeptEmp
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_DeptEmp_MyPK]
ON [dbo].[Port_DeptEmp] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_DeptEmp
-- ----------------------------
ALTER TABLE [dbo].[Port_DeptEmp] ADD CONSTRAINT [Port_DeptEmppk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_DeptEmpStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_DeptEmpStation_MyPK]
ON [dbo].[Port_DeptEmpStation] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_DeptEmpStation
-- ----------------------------
ALTER TABLE [dbo].[Port_DeptEmpStation] ADD CONSTRAINT [Port_DeptEmpStationpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_DeptStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_DeptStation_MyPK]
ON [dbo].[Port_DeptStation] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_DeptStation
-- ----------------------------
ALTER TABLE [dbo].[Port_DeptStation] ADD CONSTRAINT [Port_DeptStationpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Emp
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Emp_No]
ON [dbo].[Port_Emp] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Emp
-- ----------------------------
ALTER TABLE [dbo].[Port_Emp] ADD CONSTRAINT [Port_Emppk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Org
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Org_No]
ON [dbo].[Port_Org] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Org
-- ----------------------------
ALTER TABLE [dbo].[Port_Org] ADD CONSTRAINT [Port_Orgpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_OrgAdminer
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_OrgAdminer_MyPK]
ON [dbo].[Port_OrgAdminer] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_OrgAdminer
-- ----------------------------
ALTER TABLE [dbo].[Port_OrgAdminer] ADD CONSTRAINT [Port_OrgAdminerpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_OrgAdminerFlowSort
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_OrgAdminerFlowSort_MyPK]
ON [dbo].[Port_OrgAdminerFlowSort] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_OrgAdminerFlowSort
-- ----------------------------
ALTER TABLE [dbo].[Port_OrgAdminerFlowSort] ADD CONSTRAINT [Port_OrgAdminerFlowSortpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_OrgAdminerFrmTree
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_OrgAdminerFrmTree_MyPK]
ON [dbo].[Port_OrgAdminerFrmTree] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_OrgAdminerFrmTree
-- ----------------------------
ALTER TABLE [dbo].[Port_OrgAdminerFrmTree] ADD CONSTRAINT [Port_OrgAdminerFrmTreepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Station
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Station_No]
ON [dbo].[Port_Station] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Station
-- ----------------------------
ALTER TABLE [dbo].[Port_Station] ADD CONSTRAINT [Port_Stationpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_StationType
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_StationType_No]
ON [dbo].[Port_StationType] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_StationType
-- ----------------------------
ALTER TABLE [dbo].[Port_StationType] ADD CONSTRAINT [Port_StationTypepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Team
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Team_No]
ON [dbo].[Port_Team] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Team
-- ----------------------------
ALTER TABLE [dbo].[Port_Team] ADD CONSTRAINT [Port_Teampk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_TeamEmp
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_TeamEmp_FK_Team_FK_EmpID]
ON [dbo].[Port_TeamEmp] (
  [FK_Team] ASC,
  [FK_Emp] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_TeamEmp
-- ----------------------------
ALTER TABLE [dbo].[Port_TeamEmp] ADD CONSTRAINT [Port_TeamEmppk] PRIMARY KEY CLUSTERED ([FK_Team], [FK_Emp])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_TeamType
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_TeamType_No]
ON [dbo].[Port_TeamType] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_TeamType
-- ----------------------------
ALTER TABLE [dbo].[Port_TeamType] ADD CONSTRAINT [Port_TeamTypepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_Token
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_Token_MyPK]
ON [dbo].[Port_Token] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_Token
-- ----------------------------
ALTER TABLE [dbo].[Port_Token] ADD CONSTRAINT [Port_Tokenpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Port_User
-- ----------------------------
CREATE NONCLUSTERED INDEX [Port_User_No]
ON [dbo].[Port_User] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Port_User
-- ----------------------------
ALTER TABLE [dbo].[Port_User] ADD CONSTRAINT [Port_Userpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Pub_NY
-- ----------------------------
CREATE NONCLUSTERED INDEX [Pub_NY_No]
ON [dbo].[Pub_NY] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Pub_NY
-- ----------------------------
ALTER TABLE [dbo].[Pub_NY] ADD CONSTRAINT [Pub_NYpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_DocFile
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_DocFile_MyPK]
ON [dbo].[Sys_DocFile] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_DocFile
-- ----------------------------
ALTER TABLE [dbo].[Sys_DocFile] ADD CONSTRAINT [Sys_DocFilepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_EnCfg
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_EnCfg_No]
ON [dbo].[Sys_EnCfg] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_EnCfg
-- ----------------------------
ALTER TABLE [dbo].[Sys_EnCfg] ADD CONSTRAINT [Sys_EnCfgpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_Enum
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_Enum_MyPK]
ON [dbo].[Sys_Enum] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_Enum
-- ----------------------------
ALTER TABLE [dbo].[Sys_Enum] ADD CONSTRAINT [Sys_Enumpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_EnumMain
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_EnumMain_No]
ON [dbo].[Sys_EnumMain] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_EnumMain
-- ----------------------------
ALTER TABLE [dbo].[Sys_EnumMain] ADD CONSTRAINT [Sys_EnumMainpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_EnVer
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_EnVer_MyPK]
ON [dbo].[Sys_EnVer] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_EnVer
-- ----------------------------
ALTER TABLE [dbo].[Sys_EnVer] ADD CONSTRAINT [Sys_EnVerpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_EnVerDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_EnVerDtl_MyPK]
ON [dbo].[Sys_EnVerDtl] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_EnVerDtl
-- ----------------------------
ALTER TABLE [dbo].[Sys_EnVerDtl] ADD CONSTRAINT [Sys_EnVerDtlpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FileManager
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FileManager_OID]
ON [dbo].[Sys_FileManager] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FileManager
-- ----------------------------
ALTER TABLE [dbo].[Sys_FileManager] ADD CONSTRAINT [Sys_FileManagerpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FormTree
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FormTree_No]
ON [dbo].[Sys_FormTree] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FormTree
-- ----------------------------
ALTER TABLE [dbo].[Sys_FormTree] ADD CONSTRAINT [Sys_FormTreepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmAttachment
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmAttachment_MyPK]
ON [dbo].[Sys_FrmAttachment] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmAttachment
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmAttachment] ADD CONSTRAINT [Sys_FrmAttachmentpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmAttachmentDB
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmAttachmentDB_MyPK]
ON [dbo].[Sys_FrmAttachmentDB] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmAttachmentDB
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmAttachmentDB] ADD CONSTRAINT [Sys_FrmAttachmentDBpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmBtn
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmBtn_MyPK]
ON [dbo].[Sys_FrmBtn] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmBtn
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmBtn] ADD CONSTRAINT [Sys_FrmBtnpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmDBRemark
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmDBRemark_MyPK]
ON [dbo].[Sys_FrmDBRemark] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmDBRemark
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmDBRemark] ADD CONSTRAINT [Sys_FrmDBRemarkpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmDBVer
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmDBVer_MyPK]
ON [dbo].[Sys_FrmDBVer] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmDBVer
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmDBVer] ADD CONSTRAINT [Sys_FrmDBVerpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmEleDB
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmEleDB_MyPK]
ON [dbo].[Sys_FrmEleDB] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmEleDB
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmEleDB] ADD CONSTRAINT [Sys_FrmEleDBpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmEvent
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmEvent_MyPK]
ON [dbo].[Sys_FrmEvent] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmEvent
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmEvent] ADD CONSTRAINT [Sys_FrmEventpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmImg
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmImg_MyPK]
ON [dbo].[Sys_FrmImg] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmImg
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmImg] ADD CONSTRAINT [Sys_FrmImgpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmImgAth
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmImgAth_MyPK]
ON [dbo].[Sys_FrmImgAth] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmImgAth
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmImgAth] ADD CONSTRAINT [Sys_FrmImgAthpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmImgAthDB
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmImgAthDB_MyPK]
ON [dbo].[Sys_FrmImgAthDB] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmImgAthDB
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmImgAthDB] ADD CONSTRAINT [Sys_FrmImgAthDBpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmPrintTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmPrintTemplate_MyPK]
ON [dbo].[Sys_FrmPrintTemplate] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmPrintTemplate
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmPrintTemplate] ADD CONSTRAINT [Sys_FrmPrintTemplatepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmRB
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmRB_MyPK]
ON [dbo].[Sys_FrmRB] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmRB
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmRB] ADD CONSTRAINT [Sys_FrmRBpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_FrmSln
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_FrmSln_MyPK]
ON [dbo].[Sys_FrmSln] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_FrmSln
-- ----------------------------
ALTER TABLE [dbo].[Sys_FrmSln] ADD CONSTRAINT [Sys_FrmSlnpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_GloVar
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_GloVar_No]
ON [dbo].[Sys_GloVar] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_GloVar
-- ----------------------------
ALTER TABLE [dbo].[Sys_GloVar] ADD CONSTRAINT [Sys_GloVarpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_GroupEnsTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_GroupEnsTemplate_OID]
ON [dbo].[Sys_GroupEnsTemplate] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_GroupEnsTemplate
-- ----------------------------
ALTER TABLE [dbo].[Sys_GroupEnsTemplate] ADD CONSTRAINT [Sys_GroupEnsTemplatepk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_GroupField
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_GroupField_OID]
ON [dbo].[Sys_GroupField] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_GroupField
-- ----------------------------
ALTER TABLE [dbo].[Sys_GroupField] ADD CONSTRAINT [Sys_GroupFieldpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapAttr
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapAttr_MyPK]
ON [dbo].[Sys_MapAttr] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapAttr
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapAttr] ADD CONSTRAINT [Sys_MapAttrpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapData
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapData_No]
ON [dbo].[Sys_MapData] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapData
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapData] ADD CONSTRAINT [Sys_MapDatapk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapDataVer
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapDataVer_MyPK]
ON [dbo].[Sys_MapDataVer] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapDataVer
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapDataVer] ADD CONSTRAINT [Sys_MapDataVerpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapDtl_No]
ON [dbo].[Sys_MapDtl] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapDtl
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapDtl] ADD CONSTRAINT [Sys_MapDtlpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapExt
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapExt_MyPK]
ON [dbo].[Sys_MapExt] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapExt
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapExt] ADD CONSTRAINT [Sys_MapExtpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_MapFrame
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_MapFrame_MyPK]
ON [dbo].[Sys_MapFrame] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_MapFrame
-- ----------------------------
ALTER TABLE [dbo].[Sys_MapFrame] ADD CONSTRAINT [Sys_MapFramepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_RptDept
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_RptDept_FK_Rpt_FK_DeptID]
ON [dbo].[Sys_RptDept] (
  [FK_Rpt] ASC,
  [FK_Dept] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_RptDept
-- ----------------------------
ALTER TABLE [dbo].[Sys_RptDept] ADD CONSTRAINT [Sys_RptDeptpk] PRIMARY KEY CLUSTERED ([FK_Rpt], [FK_Dept])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_RptEmp
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_RptEmp_FK_Rpt_FK_EmpID]
ON [dbo].[Sys_RptEmp] (
  [FK_Rpt] ASC,
  [FK_Emp] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_RptEmp
-- ----------------------------
ALTER TABLE [dbo].[Sys_RptEmp] ADD CONSTRAINT [Sys_RptEmppk] PRIMARY KEY CLUSTERED ([FK_Rpt], [FK_Emp])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_RptStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_RptStation_FK_Rpt_FK_StationID]
ON [dbo].[Sys_RptStation] (
  [FK_Rpt] ASC,
  [FK_Station] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_RptStation
-- ----------------------------
ALTER TABLE [dbo].[Sys_RptStation] ADD CONSTRAINT [Sys_RptStationpk] PRIMARY KEY CLUSTERED ([FK_Rpt], [FK_Station])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_RptTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_RptTemplate_MyPK]
ON [dbo].[Sys_RptTemplate] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_RptTemplate
-- ----------------------------
ALTER TABLE [dbo].[Sys_RptTemplate] ADD CONSTRAINT [Sys_RptTemplatepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_Serial
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_Serial_CfgKey]
ON [dbo].[Sys_Serial] (
  [CfgKey] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_Serial
-- ----------------------------
ALTER TABLE [dbo].[Sys_Serial] ADD CONSTRAINT [Sys_Serialpk] PRIMARY KEY CLUSTERED ([CfgKey])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFColumn
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFColumn_MyPK]
ON [dbo].[Sys_SFColumn] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFColumn
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFColumn] ADD CONSTRAINT [Sys_SFColumnpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFColumnSln
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFColumnSln_MyPK]
ON [dbo].[Sys_SFColumnSln] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFColumnSln
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFColumnSln] ADD CONSTRAINT [Sys_SFColumnSlnpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFDBSrc
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFDBSrc_No]
ON [dbo].[Sys_SFDBSrc] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFDBSrc
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFDBSrc] ADD CONSTRAINT [Sys_SFDBSrcpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFPara
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFPara_MyPK]
ON [dbo].[Sys_SFPara] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFPara
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFPara] ADD CONSTRAINT [Sys_SFParapk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFProcedure
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFProcedure_No]
ON [dbo].[Sys_SFProcedure] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFProcedure
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFProcedure] ADD CONSTRAINT [Sys_SFProcedurepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFSearch
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFSearch_No]
ON [dbo].[Sys_SFSearch] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFSearch
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFSearch] ADD CONSTRAINT [Sys_SFSearchpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFTable
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFTable_No]
ON [dbo].[Sys_SFTable] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFTable
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFTable] ADD CONSTRAINT [Sys_SFTablepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SFTableDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SFTableDtl_MyPK]
ON [dbo].[Sys_SFTableDtl] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SFTableDtl
-- ----------------------------
ALTER TABLE [dbo].[Sys_SFTableDtl] ADD CONSTRAINT [Sys_SFTableDtlpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_SMS
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_SMS_MyPK]
ON [dbo].[Sys_SMS] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_SMS
-- ----------------------------
ALTER TABLE [dbo].[Sys_SMS] ADD CONSTRAINT [Sys_SMSpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_UserLogLevel
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_UserLogLevel_No]
ON [dbo].[Sys_UserLogLevel] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_UserLogLevel
-- ----------------------------
ALTER TABLE [dbo].[Sys_UserLogLevel] ADD CONSTRAINT [Sys_UserLogLevelpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_UserLogT
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_UserLogT_MyPK]
ON [dbo].[Sys_UserLogT] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_UserLogT
-- ----------------------------
ALTER TABLE [dbo].[Sys_UserLogT] ADD CONSTRAINT [Sys_UserLogTpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_UserLogType
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_UserLogType_No]
ON [dbo].[Sys_UserLogType] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_UserLogType
-- ----------------------------
ALTER TABLE [dbo].[Sys_UserLogType] ADD CONSTRAINT [Sys_UserLogTypepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table Sys_UserRegedit
-- ----------------------------
CREATE NONCLUSTERED INDEX [Sys_UserRegedit_MyPK]
ON [dbo].[Sys_UserRegedit] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table Sys_UserRegedit
-- ----------------------------
ALTER TABLE [dbo].[Sys_UserRegedit] ADD CONSTRAINT [Sys_UserRegeditpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_AccepterRole
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_AccepterRole_OID]
ON [dbo].[WF_AccepterRole] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_AccepterRole
-- ----------------------------
ALTER TABLE [dbo].[WF_AccepterRole] ADD CONSTRAINT [WF_AccepterRolepk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Auth
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Auth_MyPK]
ON [dbo].[WF_Auth] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Auth
-- ----------------------------
ALTER TABLE [dbo].[WF_Auth] ADD CONSTRAINT [WF_Authpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_AutoRpt
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_AutoRpt_No]
ON [dbo].[WF_AutoRpt] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_AutoRpt
-- ----------------------------
ALTER TABLE [dbo].[WF_AutoRpt] ADD CONSTRAINT [WF_AutoRptpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_AutoRptDtl
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_AutoRptDtl_OID]
ON [dbo].[WF_AutoRptDtl] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_AutoRptDtl
-- ----------------------------
ALTER TABLE [dbo].[WF_AutoRptDtl] ADD CONSTRAINT [WF_AutoRptDtlpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_CCList
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_CCList_MyPK]
ON [dbo].[WF_CCList] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_CCList
-- ----------------------------
ALTER TABLE [dbo].[WF_CCList] ADD CONSTRAINT [WF_CCListpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_CCRole
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_CCRole_MyPK]
ON [dbo].[WF_CCRole] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_CCRole
-- ----------------------------
ALTER TABLE [dbo].[WF_CCRole] ADD CONSTRAINT [WF_CCRolepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_CH
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_CH_MyPK]
ON [dbo].[WF_CH] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_CH
-- ----------------------------
ALTER TABLE [dbo].[WF_CH] ADD CONSTRAINT [WF_CHpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_CHEval
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_CHEval_MyPK]
ON [dbo].[WF_CHEval] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_CHEval
-- ----------------------------
ALTER TABLE [dbo].[WF_CHEval] ADD CONSTRAINT [WF_CHEvalpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_CHNode
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_CHNode_MyPK]
ON [dbo].[WF_CHNode] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_CHNode
-- ----------------------------
ALTER TABLE [dbo].[WF_CHNode] ADD CONSTRAINT [WF_CHNodepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Cond
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Cond_MyPK]
ON [dbo].[WF_Cond] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Cond
-- ----------------------------
ALTER TABLE [dbo].[WF_Cond] ADD CONSTRAINT [WF_Condpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_DeptFlowSearch
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_DeptFlowSearch_MyPK]
ON [dbo].[WF_DeptFlowSearch] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_DeptFlowSearch
-- ----------------------------
ALTER TABLE [dbo].[WF_DeptFlowSearch] ADD CONSTRAINT [WF_DeptFlowSearchpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Direction
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Direction_MyPK]
ON [dbo].[WF_Direction] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Direction
-- ----------------------------
ALTER TABLE [dbo].[WF_Direction] ADD CONSTRAINT [WF_Directionpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_DirectionStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_DirectionStation_FK_Direction_FK_StationID]
ON [dbo].[WF_DirectionStation] (
  [FK_Direction] ASC,
  [FK_Station] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_DirectionStation
-- ----------------------------
ALTER TABLE [dbo].[WF_DirectionStation] ADD CONSTRAINT [WF_DirectionStationpk] PRIMARY KEY CLUSTERED ([FK_Direction], [FK_Station])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_DocTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_DocTemplate_No]
ON [dbo].[WF_DocTemplate] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_DocTemplate
-- ----------------------------
ALTER TABLE [dbo].[WF_DocTemplate] ADD CONSTRAINT [WF_DocTemplatepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Emp
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Emp_No]
ON [dbo].[WF_Emp] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Emp
-- ----------------------------
ALTER TABLE [dbo].[WF_Emp] ADD CONSTRAINT [WF_Emppk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Flow
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Flow_No]
ON [dbo].[WF_Flow] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Flow
-- ----------------------------
ALTER TABLE [dbo].[WF_Flow] ADD CONSTRAINT [WF_Flowpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FlowOrg
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FlowOrg_MyPK]
ON [dbo].[WF_FlowOrg] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FlowOrg
-- ----------------------------
ALTER TABLE [dbo].[WF_FlowOrg] ADD CONSTRAINT [WF_FlowOrgpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FlowSort
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FlowSort_No]
ON [dbo].[WF_FlowSort] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FlowSort
-- ----------------------------
ALTER TABLE [dbo].[WF_FlowSort] ADD CONSTRAINT [WF_FlowSortpk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FlowTab
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FlowTab_MyPK]
ON [dbo].[WF_FlowTab] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FlowTab
-- ----------------------------
ALTER TABLE [dbo].[WF_FlowTab] ADD CONSTRAINT [WF_FlowTabpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FrmNode
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FrmNode_MyPK]
ON [dbo].[WF_FrmNode] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FrmNode
-- ----------------------------
ALTER TABLE [dbo].[WF_FrmNode] ADD CONSTRAINT [WF_FrmNodepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FrmNodeFieldRemove
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FrmNodeFieldRemove_MyPK]
ON [dbo].[WF_FrmNodeFieldRemove] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FrmNodeFieldRemove
-- ----------------------------
ALTER TABLE [dbo].[WF_FrmNodeFieldRemove] ADD CONSTRAINT [WF_FrmNodeFieldRemovepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_FrmOrg
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_FrmOrg_MyPK]
ON [dbo].[WF_FrmOrg] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_FrmOrg
-- ----------------------------
ALTER TABLE [dbo].[WF_FrmOrg] ADD CONSTRAINT [WF_FrmOrgpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_GenerWorkerlist
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_GenerWorkerlist_WorkID_FK_Emp_FK_NodeID]
ON [dbo].[WF_GenerWorkerlist] (
  [WorkID] ASC,
  [FK_Emp] ASC,
  [FK_Node] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_GenerWorkerlist
-- ----------------------------
ALTER TABLE [dbo].[WF_GenerWorkerlist] ADD CONSTRAINT [WF_GenerWorkerlistpk] PRIMARY KEY CLUSTERED ([WorkID], [FK_Emp], [FK_Node])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_GenerWorkFlow
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_GenerWorkFlow_WorkID]
ON [dbo].[WF_GenerWorkFlow] (
  [WorkID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_GenerWorkFlow
-- ----------------------------
ALTER TABLE [dbo].[WF_GenerWorkFlow] ADD CONSTRAINT [WF_GenerWorkFlowpk] PRIMARY KEY CLUSTERED ([WorkID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_LabNote
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_LabNote_MyPK]
ON [dbo].[WF_LabNote] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_LabNote
-- ----------------------------
ALTER TABLE [dbo].[WF_LabNote] ADD CONSTRAINT [WF_LabNotepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Node
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Node_NodeID]
ON [dbo].[WF_Node] (
  [NodeID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Node
-- ----------------------------
ALTER TABLE [dbo].[WF_Node] ADD CONSTRAINT [WF_Nodepk] PRIMARY KEY CLUSTERED ([NodeID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeCancel
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeCancel_FK_Node_CancelToID]
ON [dbo].[WF_NodeCancel] (
  [FK_Node] ASC,
  [CancelTo] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeCancel
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeCancel] ADD CONSTRAINT [WF_NodeCancelpk] PRIMARY KEY CLUSTERED ([FK_Node], [CancelTo])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeDept
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeDept_MyPK]
ON [dbo].[WF_NodeDept] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeDept
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeDept] ADD CONSTRAINT [WF_NodeDeptpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeEmp
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeEmp_MyPK]
ON [dbo].[WF_NodeEmp] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeEmp
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeEmp] ADD CONSTRAINT [WF_NodeEmppk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeReturn
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeReturn_FK_Node_ReturnToID]
ON [dbo].[WF_NodeReturn] (
  [FK_Node] ASC,
  [ReturnTo] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeReturn
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeReturn] ADD CONSTRAINT [WF_NodeReturnpk] PRIMARY KEY CLUSTERED ([FK_Node], [ReturnTo])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeStation
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeStation_MyPK]
ON [dbo].[WF_NodeStation] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeStation
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeStation] ADD CONSTRAINT [WF_NodeStationpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeSubFlow
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeSubFlow_MyPK]
ON [dbo].[WF_NodeSubFlow] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeSubFlow
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeSubFlow] ADD CONSTRAINT [WF_NodeSubFlowpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeTeam
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeTeam_MyPK]
ON [dbo].[WF_NodeTeam] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeTeam
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeTeam] ADD CONSTRAINT [WF_NodeTeampk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_NodeToolbar
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_NodeToolbar_OID]
ON [dbo].[WF_NodeToolbar] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_NodeToolbar
-- ----------------------------
ALTER TABLE [dbo].[WF_NodeToolbar] ADD CONSTRAINT [WF_NodeToolbarpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Part
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Part_MyPK]
ON [dbo].[WF_Part] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Part
-- ----------------------------
ALTER TABLE [dbo].[WF_Part] ADD CONSTRAINT [WF_Partpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_PowerModel
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_PowerModel_MyPK]
ON [dbo].[WF_PowerModel] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_PowerModel
-- ----------------------------
ALTER TABLE [dbo].[WF_PowerModel] ADD CONSTRAINT [WF_PowerModelpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_PushMsg
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_PushMsg_MyPK]
ON [dbo].[WF_PushMsg] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_PushMsg
-- ----------------------------
ALTER TABLE [dbo].[WF_PushMsg] ADD CONSTRAINT [WF_PushMsgpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_RememberMe
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_RememberMe_MyPK]
ON [dbo].[WF_RememberMe] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_RememberMe
-- ----------------------------
ALTER TABLE [dbo].[WF_RememberMe] ADD CONSTRAINT [WF_RememberMepk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_ReturnWork
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_ReturnWork_MyPK]
ON [dbo].[WF_ReturnWork] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_ReturnWork
-- ----------------------------
ALTER TABLE [dbo].[WF_ReturnWork] ADD CONSTRAINT [WF_ReturnWorkpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_SelectAccper
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_SelectAccper_MyPK]
ON [dbo].[WF_SelectAccper] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_SelectAccper
-- ----------------------------
ALTER TABLE [dbo].[WF_SelectAccper] ADD CONSTRAINT [WF_SelectAccperpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_SQLTemplate
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_SQLTemplate_No]
ON [dbo].[WF_SQLTemplate] (
  [No] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_SQLTemplate
-- ----------------------------
ALTER TABLE [dbo].[WF_SQLTemplate] ADD CONSTRAINT [WF_SQLTemplatepk] PRIMARY KEY CLUSTERED ([No])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_SyncData
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_SyncData_MyPK]
ON [dbo].[WF_SyncData] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_SyncData
-- ----------------------------
ALTER TABLE [dbo].[WF_SyncData] ADD CONSTRAINT [WF_SyncDatapk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_SyncDataField
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_SyncDataField_MyPK]
ON [dbo].[WF_SyncDataField] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_SyncDataField
-- ----------------------------
ALTER TABLE [dbo].[WF_SyncDataField] ADD CONSTRAINT [WF_SyncDataFieldpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_Task
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_Task_MyPK]
ON [dbo].[WF_Task] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_Task
-- ----------------------------
ALTER TABLE [dbo].[WF_Task] ADD CONSTRAINT [WF_Taskpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_TransferCustom
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_TransferCustom_MyPK]
ON [dbo].[WF_TransferCustom] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_TransferCustom
-- ----------------------------
ALTER TABLE [dbo].[WF_TransferCustom] ADD CONSTRAINT [WF_TransferCustompk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_WorkFlowDeleteLog
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_WorkFlowDeleteLog_OID]
ON [dbo].[WF_WorkFlowDeleteLog] (
  [OID] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_WorkFlowDeleteLog
-- ----------------------------
ALTER TABLE [dbo].[WF_WorkFlowDeleteLog] ADD CONSTRAINT [WF_WorkFlowDeleteLogpk] PRIMARY KEY CLUSTERED ([OID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Indexes structure for table WF_WorkOpt
-- ----------------------------
CREATE NONCLUSTERED INDEX [WF_WorkOpt_MyPK]
ON [dbo].[WF_WorkOpt] (
  [MyPK] ASC
)
GO


-- ----------------------------
-- Primary Key structure for table WF_WorkOpt
-- ----------------------------
ALTER TABLE [dbo].[WF_WorkOpt] ADD CONSTRAINT [WF_WorkOptpk] PRIMARY KEY CLUSTERED ([MyPK])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

